tag:help.appveyor.com,2012-11-13:/discussions/problems/2993-uwp-test-assembly-build-failingAppVeyor: Discussion 2018-10-19T08:17:27Ztag:help.appveyor.com,2012-11-13:Comment/378830142015-09-09T14:41:04Z2015-09-09T14:41:04ZUWP test assembly build failing<div><p>Hi,</p>
<p>I have an error saying that "OutputPath" is not defined when
build an UWP assembly. When building it locally using msbuild (in
command-line prompt) it builds.<br>
The failed build is here: <a href="https://ci.appveyor.com/project/picrap/mradvice/build/master-132">https://ci.appveyor.com/project/picrap/mradvice/build/master-132</a><br>
I probably missed something somewhere, but what?</p>
<p>Thanks for any help.</p></div>pascaltag:help.appveyor.com,2012-11-13:Comment/378830142015-09-09T17:58:00Z2015-09-09T17:58:00ZUWP test assembly build failing<div><p>It looks like the problem comes from <code>nuget restore</code>
command.</p>
<p>Try installing nuget 3.2-rc with this command:</p>
<pre>
<code>appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/v3.2.0-rc/nuget.exe</code>
</pre>
<p>or previous nuget 2.8.5 with:</p>
<pre>
<code>appveyor DownloadFile https://www.nuget.org/nuget.exe</code>
</pre>
<p>to see if that helps.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378830142015-09-09T19:17:13Z2015-09-09T19:17:13ZUWP test assembly build failing<div><p>Hi Feodor,</p>
<p>you are probably the fastest support on earth!<br>
The idea was good and I tried both options which seemed to solve
the specific error, unfortunately, another package doesn't work
anymore (TransformOnBuild doesn't transform on build).</p>
<p>The most frustrating thing is that I am unable to reproduce this
in local, so this is very hard to debug.</p></div>pascaltag:help.appveyor.com,2012-11-13:Comment/378830142015-09-09T19:20:31Z2015-09-09T19:20:31ZUWP test assembly build failing<div><p>What the error is that? Where do you get it?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378830142015-09-09T19:22:12Z2015-09-09T19:22:12ZUWP test assembly build failing<div><p>See at <a href="https://ci.appveyor.com/project/picrap/mradvice/build/master-134">https://ci.appveyor.com/project/picrap/mradvice/build/master-134</a><br>
The ProductInfo.cs file is missing because it was not generated
from ProductInfo.tt by Clarius.TransformOnBuild.</p></div>pascaltag:help.appveyor.com,2012-11-13:Comment/378830142015-09-09T19:23:17Z2015-09-09T19:23:17ZUWP test assembly build failing<div><p>I see. Is it like T4? How does it usually work? Is there
something missing on build workers?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378830142015-09-09T19:26:32Z2015-09-09T19:26:32ZUWP test assembly build failing<div><p>Yes, it is a T4 generator, but instead of generating files on
source modification, it generates them on build.<br>
It was working until here (all my previous builds which were
successful are using it).</p></div>pascaltag:help.appveyor.com,2012-11-13:Comment/378830142015-09-09T19:31:31Z2015-09-09T19:31:31ZUWP test assembly build failing<div><p>Btw, could you try rebuilding the last successful build:
<a href="https://ci.appveyor.com/project/picrap/mradvice/build/master-130">
https://ci.appveyor.com/project/picrap/mradvice/build/master-130</a>
to see if that's environment change?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378830142015-09-09T19:37:45Z2015-09-09T19:37:45ZUWP test assembly build failing<div><p>It still builds :)</p></div>pascaltag:help.appveyor.com,2012-11-13:Comment/378830142015-09-09T20:42:40Z2015-09-09T20:42:40ZUWP test assembly build failing<div><p>Then something breaks it in this commit: <a href="https://github.com/ArxOne/MrAdvice/commit/228c8fcc351812de4eecbdeb282b86268c8bc439">
https://github.com/ArxOne/MrAdvice/commit/228c8fcc351812de4eecbdeb2...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378830142015-09-10T17:43:25Z2015-09-10T17:43:25ZUWP test assembly build failing<div><p>II made a few tests, and installing another nuget that the
version provided breaks the Clarius.TransformOnBuild package.<br>
So until there is an official nuget release, I'll keep my changes
in a separate branch.</p></div>pascaltag:help.appveyor.com,2012-11-13:Comment/378830142015-09-13T19:02:50Z2015-09-13T20:54:36ZUWP test assembly build failing<div><p>I found a fix: I simply need to add the following line<br>
bin\Release</OutputPath> to the UWP csproj files, in the
first node.</p></div>pascal