-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paket pack fails when there is no build configuration named "Release" #1262
Comments
I created a failing test in 106215a @amazingant do you have an idea how we can handle this? |
@forki I know this isn't the desired answer, but this behavior looks correct to me. The shortened project file from @agross says on line 6 to target To quickly patch over this and get the issue resolved, |
@amazingant One could argue the project file is incorrect. What should be fixed, in your opinion? I'm not saying paket shouldn't change its "finding" logic, rather that VS created the csproj and it seems legit to VS, but not paket. |
(just to clarify why the older version worked. At that time we didn't analyzed at all, so by pure luck it worked) |
@agross Knowing that you can do this in VS' configuration manager, your project file looks perfectly legitimate to me: (I think VS keeps this information in the solution file?) Unfortunately, paket doesn't know about this "Debug means x86 for project Y and AnyCPU for project Z" info. Perhaps the best way to handle this would be to add an optional parameter to the Your thoughts, @forki? There's a nice list of platforms from the C# compiler documentation here that paket could check against. |
mhm. at the moment we don't report any path, right? Maybe we should default to whatever we find with release then!? |
Yes, this is the case here.
That would be fine with me. In this case, perhaps log some warnings about that and tell the user what platforms have been tried and which has been selected. |
Thank you very much, our build turned green again :-) I think the output can be improved when you have multiple
|
@agross Just took a look at the build output for one of my projects and saw the same. Initially confused me seeing |
👍 That would be great! |
csproj (irrelevant lines removed):
As you can see we only have the "Release|x86" config. Paket 1.32 packed this just fine with
type project
inpaket.template
, but 2.28 yields:I don't know how the "find output path" logic changed in particular, but maybe use "Release.*" as a fallback when looking for the
OutputPath
.The text was updated successfully, but these errors were encountered: