Universal application with visual studio online

I am currently setting up a project in Visual Studio Online (VSO) and am having problems setting up automatic builds. My solution contains projects designed as universal Windows VSO uses msbuild to run my project.

During build, I see strange error messages like:

    Error CS0518: Predefined type 'System.Void' is not defined or imported
    Error CS0518: Predefined type 'System.Object' is not defined or imported
    Error CS0246: The type or namespace name 'Uri' could not be found (are you missing a using directive or an assembly reference?)

msbuild is invoked with the following parameters:

    C:\Program Files (x86)\MSBuild\14.0\bin\amd64\msbuild.exe "C:\a\b0d9e3fd\test\src\Shipping.sln" /nologo /m /nr:false /fl /flp:"logfile=C:\a\b0d9e3fd\test\src\Shipping.sln.log" /dl:CentralLogger,"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:Platform=Win32 /p:TargetVersion="Windows10" /p:TargetPlatformVersion="10.0.10010.0" /p:platform="any cpu" /p:configuration="release" /p:VisualStudioVersion="14.0"

What happened to this? Are there any other additional options needed to create a universal Windows application using msbuild?

+1
source share
3 answers

Windows 10 SDK? , TFS. , , Windows 10 SDK. .

+1

.

UWP, VS NuGet. VS 10 NuGet , ​​ . . NuGet 3 script, NuGet .

0

(: -), - project.lock.json.

, NuGet v2.8.7 project.json project.lock.json, project.lock.json project.json.

Microsoft NuGet , Nuget -restore. .

0

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


All Articles