Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Edited Unassigned: NuGet.targets BuildCommand should set Platform property [3659]

$
0
0
The BuildCommand property in NuGet.targets only loosely specifies the configuration of the project but forgets to set the platform.

This can cause MSBuild to fail the build with the error message: "Unable to find '{0}'. Make sure the project has been built."

Discussion thread below:
http://nuget.codeplex.com/discussions/271960

Fix
---
Replace this line in NuGet.targets:
``` xml
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties Configuration=$(Configuration) $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>
```

with this line:
``` xml
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties Configuration=$(Configuration);Platform=$(Platform) $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>
```

Viewing all articles
Browse latest Browse all 7612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>