Visual Studio Online Error parsing solution file in * .xproj

I am working on an AspNet5 project and am trying to use VSO to create a project. I am following the article here , but when I create the xproj file, I get the "Parsing solution file in {ProjectPath} .xproj: An exception was thrown for the purpose of the call." How can I run the MsBuild step without throwing this error?

Edit: My xproj file is almost identical to xproj here

<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> </PropertyGroup> <Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" /> <PropertyGroup Label="Globals"> <ProjectGuid>06d62522-2dad-4393-9b90-17d70e275587</ProjectGuid> <RootNamespace>ProjectNamespace</RootNamespace> <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath> <OutputPath Condition="'$(OutputPath)'=='' ">..\..\artifacts\bin\$(MSBuildProjectName)\</OutputPath> </PropertyGroup> <PropertyGroup> <SchemaVersion>2.0</SchemaVersion> <DevelopmentServerPort>2645</DevelopmentServerPort> </PropertyGroup> <ItemGroup> <DnxInvisibleContent Include="bower.json" /> <DnxInvisibleContent Include=".bowerrc" /> <DnxInvisibleContent Include="package.json" /> </ItemGroup> <Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" Condition="'$(VSToolsPath)' != ''" /> </Project> 
+5
source share
2 answers

I found the answer to this problem, and this is because VSO automatically performs NuGet recovery. After I disabled NuGet, it works fine. There is a step in the tutorial that adds a β€œdnu repair” in which packages are restored.

+10
source

Oh, I found it. This is a property of the VS Build step. enter image description here

+5
source

Source: https://habr.com/ru/post/1237672/


All Articles