nsabiyera / walkingskeleton

This is Loam with UI Automation via Canopy F#
amirrajan.github.com/Oak
1 stars 0 forks source link

RakeDotNet/sln_builder.rb #2

Open johnbabb opened 10 years ago

johnbabb commented 10 years ago

After a warmup command I try the rake command I get the error:

error MSB4126: The specified solution configuration "Debug|MCD" 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 blank to use the default solution configuration. rake aborted!

I don't have a build config for MCD, and googling it doesn't come up with anything. can you add the following to the SlnBuilder?

/p:Configuration=Debug /p:Platform=\"Any CPU\"

    def command(sln)
        return "\"#{@msbuild_path}\" \"#{sln}\"  /p:Configuration=Debug /p:Platform=\"Any CPU\" /verbosity:quiet /nologo"
    end
amirrajan commented 10 years ago

I'll try it out soon and push a new package to Nuget. Feel free to manually patch your local copy. Also, given that VS 2013 has moved where MSBuild is, I'm thinking about changing the default @msbuild_path to C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\amd64\\msbuild.exe.

Here is an example of how you can manually override that:

https://github.com/amirrajan/Loam/blob/master/Rakefile.rb#L38

What do you think?