You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having problems building and even understanding what's wrong with the build. Maybe it's just my system, maybe it's my PowerShell console (my profile loads the VS tools using vcvars.bat). I cloned the master branch and ran Build-Solution.ps1 from a PowerShell console. I got
the specified solution configuration "Debug|X64" is invalid.
I don't see a Platform defined in NuGetGallery.msbuild. I added ;Platform=Any CPU to the Build task and got the same error. I removed both Platform and Configuration and got the same error.
PS\nuget-gallery [master]> .\Build-Solution.ps1
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.237]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 10/7/2011 9:55:09 AM.
Project "PS\nuget-gallery\Scripts\NuGetGallery.msbuild"
on node 1 (FullBuild target(s)).
Project "PS\nuget-gallery\Scripts\NuGetGallery.msbuild"
(1) is building "PS\nuget-gallery\NuGetGallery.sln" (2)
on node 1 (Clean target(s)).
PS\nuget-gallery\NuGetGallery.sln.metaproj : error MSB41
26: The specified solution configuration "Debug|X64" is invalid. Please specify a valid s
olution configuration using the Configuration and Platform properties (e.g. MSBuild.exe S
olution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank
to use the default solution configuration. [PS\nuget-ga
llery\NuGetGallery.sln]
Done Building Project "PS\nuget-gallery\NuGetGallery.sln
" (Clean target(s)) -- FAILED.
Done Building Project "PS\nuget-gallery\Scripts\NuGetGal
lery.msbuild" (FullBuild target(s)) -- FAILED.
Build FAILED.
"PS\nuget-gallery\Scripts\NuGetGallery.msbuild" (FullBui
ld target) (1) ->
"PS\nuget-gallery\NuGetGallery.sln" (Clean target) (2) -
>
(ValidateSolutionConfiguration target) ->
PS\nuget-gallery\NuGetGallery.sln.metaproj : error MSB
4126: The specified solution configuration "Debug|X64" is invalid. Please specify a valid
solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe
Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties bla
nk to use the default solution configuration. [PS\nuget-
gallery\NuGetGallery.sln]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.04
I inspected the NuGetGallery.sln, Website.csproj, and Facts.csproj for Platform and they all show Debug|AnyCPU and Release|AnyCPU as defaults. So, I ran the command by hand in my PowerShell console, in a way that should have used the defaults, and I got the same error!
Project "PS\nuget-gallery\Scripts\NuGetGallery.msbuild"
(1) is building "PS\nuget-gallery\Website\Website.csproj
" (4:7) on node 1 (MvcBuildViews target(s)).
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(483,9): error :
The OutputPath property is not set for project 'Website.csproj'. Please check to make su
re that you have specified a valid combination of Configuration and Platform for this pro
ject. Configuration='Debug' Platform='Any CPU'. You may be seeing this message because
you are trying to build a project without a solution file, and have specified a non-defa
ult Configuration or Platform that doesn't exist for this project. [PS\nuget-gallery\Webs
ite\Website.csproj]
So, I added that in, and I don't know where it's supposed to go (not a web-projects guy), so I made it somewhere that I could simply watch if it output anything.
When you import vcvars on a 64-bit machine, you get an machine-wide environment variable, Platform=x64. That requires that I use a regular console (one that doesn't import vcvars) or manually pass in the correct Platform.
I'm having problems building and even understanding what's wrong with the build. Maybe it's just my system, maybe it's my PowerShell console (my profile loads the VS tools using vcvars.bat). I cloned the master branch and ran Build-Solution.ps1 from a PowerShell console. I got
I don't see a
Platform
defined in NuGetGallery.msbuild. I added;Platform=Any CPU
to theBuild
task and got the same error. I removed bothPlatform
andConfiguration
and got the same error.I inspected the NuGetGallery.sln, Website.csproj, and Facts.csproj for
Platform
and they all showDebug|AnyCPU
andRelease|AnyCPU
as defaults. So, I ran the command by hand in my PowerShell console, in a way that should have used the defaults, and I got the same error!I finally ran with the
Platform
andConfiguration
overridden and it succeeded.But now I can't get the
BuildViews
task to complete. I ran that by hand (since invoking themsbuild
file won't work).So, I added that in, and I don't know where it's supposed to go (not a web-projects guy), so I made it somewhere that I could simply watch if it output anything.
I got a .\bin_PublishedWebsites\Website and I don't know what do with that.
The text was updated successfully, but these errors were encountered: