-
Notifications
You must be signed in to change notification settings - Fork 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
Self-Contained publish fails when explicit restore is run beforehand with -r #2312
Comments
/cc @dsplaisted Looking into this, it appears that Then later when you |
@livarcocc - curious why this was added to the 2.1.4xx milestone when this was a regression introduced in 2.1.301? |
I believe this is a regression between 2.1.2xx and 2.1.3xx, not within 2.1.3xx. That's when we introduced the self-publish work to guarantee that self-contained apps would publish for the highest runtime we knew of. |
This was an intentional change in 2.1.300. If you want to publish as self-contained but use |
Closing this as by design. |
Repo Steps
Actual Results
You are working with a preview version of the .NET Core SDK. You can define the SDK version via a global.json file in the current project. More at https://go.microsoft.com/fwlink/?linkid=869452
/app2/app2.csproj : error : The project was restored using Microsoft.NETCore.App version 2.1.0, but with current settings, version 2.1.1-servicing-26605-02 would be used instead. To resolve this issue, make sure the same settings are used for restore and for subsequent operations such as build or publish. Typically this issue can occur if the RuntimeIdentifier property is set during build or publish but not during restore.
Expected Results
Publishing would succeed.
Regression appears to be caused by #2085
Related to #1570
The text was updated successfully, but these errors were encountered: