Skip to content
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

After latest update of NativeAOT cannot publish samples #1451

Closed
kant2002 opened this issue Aug 24, 2021 · 3 comments
Closed

After latest update of NativeAOT cannot publish samples #1451

kant2002 opened this issue Aug 24, 2021 · 3 comments

Comments

@kant2002
Copy link
Contributor

kant2002 commented Aug 24, 2021

After these steps

cs samples/HelloWorld
../../.dotnet/dotnet publish -c Release -r linux-arm --packages pkg /p:DisableUnsupportedError=true

Publish fails with this message.

/home/pi/runtimelab/samples/HelloWorld/HelloWorld.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.linux-arm with version (= 6.0.0-rc.1.21411.2)
/home/pi/runtimelab/samples/HelloWorld/HelloWorld.csproj : error NU1102:   - Found 57 version(s) in dotnet-public [ Nearest version: 6.0.0-preview.7.21377.19 ]
/home/pi/runtimelab/samples/HelloWorld/HelloWorld.csproj : error NU1102:   - Found 0 version(s) in dotnet-experimental
/home/pi/runtimelab/samples/HelloWorld/HelloWorld.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.linux-arm with version (= 6.0.0-rc.1.21411.7)
/home/pi/runtimelab/samples/HelloWorld/HelloWorld.csproj : error NU1102:   - Found 59 version(s) in dotnet-public [ Nearest version: 6.0.0-preview.7.21378.6 ]
/home/pi/runtimelab/samples/HelloWorld/HelloWorld.csproj : error NU1102:   - Found 0 version(s) in dotnet-experimental
@kant2002 kant2002 changed the title After latest update of NativeAOT cannot build samples After latest update of NativeAOT cannot publish samples Aug 24, 2021
@jkotas
Copy link
Member

jkotas commented Aug 24, 2021

This is side-effect of dotnet/runtime#57143 that updated SDK to unsigned build. You either need to copy the samples out so that they do not pick up repo global.json; or install the unsigned SDK from the nightly feed globally.

@jkotas jkotas closed this as completed Aug 24, 2021
@kant2002
Copy link
Contributor Author

kant2002 commented Aug 24, 2021 via email

@jkotas
Copy link
Member

jkotas commented Aug 24, 2021

I comment out <clear /> in the Nuget.config

Yep, that works too.

--self-contained or --no-self-contained options are required when '--runtime' is used.

Yes, specifying --self-contained will silence this warning with the latest SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants