1
votes

We have created a uwp app with Windows 10 SDK for Creators update (10.0.16299.15), and now we want to integrate that into the CI on VSTS. So updated the build agent with latest SDK. But our we builds fails with not able to find types like below:

error CS0246: The type or namespace name 'AssemblyTitleAttribute' could not be found (are you missing a using directive or an assembly reference?) [D:\Windows-universal-samples-master\Windows-universal-samples-master\Samples\Logging\cs\Logging.csproj]"

we even tried to build the samples from SDK download page, with same result.

Build Agent OS: Windows 2012 R2 Server

Are we missing anything?

1
deleting .vs,bin and obj folders didn't help. Thanks!Naresh
Can you build the project through MSBuild and Visual Studio on that build machine manually? Can you reproduce this issue with new project? Set system.debug variable to true, then queue build and share the detail log on the OneDrive?starian chen-MSFT
No, we are not able to build the project on MSBuild on build machine. Since the build machine is Windows 2012 R2, the project does not open in VS. We are able to repro the issue with samples from the SDK download page.Naresh
manual MSBuild output on the build machine - 1drv.ms/t/s!AidPG11wBFc1roJpI8267fpuLUpqLQNaresh

1 Answers

1
votes

You need to add NuGet Restore task to restore packages. There is Universal Windows Platform build template, so the simple way is that:

  1. Click New to create build definition
  2. Select Universal Windows Platform template=>Apply