-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Build fails when using sdk version 7.0.200 #30625
Comments
The NETSDK1194 error was intentionally added in #29065, to fix #15607. It hasn't yet been documented at .NET SDK error list, though. Perhaps it should be added to Breaking changes in .NET 7, too. |
I was under the impression that 7.0 was already out of the preview phase. |
Updated description with building project workaround. |
Can you use .NET SDK 7.0.103 for now? It does not include this change. |
Yes, updated issues with package downgrade workaround. |
I mean, both .NET SDK 7.0.103 and 7.0.200 include the fix for CVE-2023-21808 – .NET Remote Code Execution Vulnerability, so 7.0.103 would be safer than 7.0.102. |
.NET SDK 7.0.103 works for me but 7.0.200 fails. |
Just bizarro land that you would merge in a breaking change for something that has literally worked without issue for almost 6 years at this point..... |
There's a follow up on this situation here. |
This just broke a few of my GitHub Actions using dotnet pack
Still should be working according to the docs: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-pack Then stumbled across this issue :( |
Based on #15607, NETSDK1194 was added to prevent building multiple solutions into a single folder. In my case, there is a bug and regression here, because I am not building to a single folder - in fact my CI script explicitly says cc: @sungam3r |
FYI, |
I will attempt to use the Having the functionality to place all built packages in a single folder is a necessity!!! |
@Shane32 agree on all counts. A few notes:
|
I just put the following line in Directory.Build.props for my nuget solution and it works just fine <PackageOutputPath>..\..\</PackageOutputPath> From there you can wildcard push... dotnet nuget push "*.nupkg" Note: this hoists the packages up from the \src\{Project} folder to the solution root. Obviously your folder structure may vary. |
When in next month? We have a lot of nuget packages, where the CI/CD is broken now due to this issue, so would be nice to know if we should spend time change all processes to use the --property:PackageOutputPath instead of --output or we can live with waiting for it to be released. |
We faced the same problem with was before: |
Agree with #30625 (comment) . We intentionally use
|
… change (#2658) dotnet/sdk#30625 (comment) (cherry picked from commit 6fafb37)
… change (#4938) dotnet/sdk#30625 (comment) (cherry picked from commit 09fa2a2)
Do I understand correctly that you removed the very useful and important feature, that allowed flexibility, because some random guys had overwritten their files with it? And you did that in stable, production ready release? Are you serious? What’s wrong with defining the output path? Those for whom solution wide output doesn’t work should reach for workarounds (like building each project separately and into different folder or not using —output flag), not everyone else! There are tools and pipelines built around this flag, this is well known and expected behavior. If someone blames own misconfiguration on optional flag, then flag alone is least of their problems. Please bring back original functionality. |
There seems to be some other reasoning behind it, but I agree, IMO this is a breaking change and should go to a major version. |
Reasoning is that „behavior is inconsistent”. Yeah, maybe it is but it’s well known fact, been there forever and that „inconsistency” was tamed by many and incorporated into the tools. Just look at this topic - I bet my comment alone got more likes than there were people for whom that „inconsistency” was a problem and not desired behavior. So it’s solution for few that became now new issue for many. Another good design choice .NET team! Whooohooo! Anyway thank you for linking that article. After all that blablabla justifying this stupid change there’s at least list of options provided, that we all now can try to use to bring our tools back to life. |
@EvilVir you're entirely correct, we should not have introduced the change at this severity in this version. Please bear with us, as we're in the process of releasing the 7.0.201 hotfix, as mentioned in #30624 (comment). |
Hello folks, wanted to give you all an update on the situation. Last night, 7.0.201 was released through all the various channels. It should already be available on GitHub Actions and AzDO runners, and of course for local installation. This hotfix contained the changes to the The other problem logged in this issue, MSBuild logging a prerelease version string, will be handled in the normal servicing schedule - likely with next month's expected release of 7.0.202. Thank you all for the feedback and discussion on this issue. |
Thanks! So far GitHub Actions' |
All got back to normal on my end. Thank you! |
This issue is ALSO happening for 6.0.* builds: |
Force pull of latest SDK to fix dotnet/sdk#30625
All URLs for 7.0 were not properly updated - see here: |
Describe the bug
Project fails to build when the sdk version 7.0.200 is used:
error NETSDK1194: The "--output" option isn't supported when building a solution.
Works fine with version 7.0.102 however.
To Reproduce
We may close this issue if:
-->
Exceptions (if any)
error NETSDK1194: The "--output" option isn't supported when building a solution.
Workaround
Downgrade to previous package:
This however breaks testing, and is not a solution.
Further technical details
The text was updated successfully, but these errors were encountered: