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

Update to 2.0.0 RTM #3

Closed
g0t4 opened this issue Oct 4, 2017 · 2 comments
Closed

Update to 2.0.0 RTM #3

g0t4 opened this issue Oct 4, 2017 · 2 comments

Comments

@g0t4
Copy link
Owner

g0t4 commented Oct 4, 2017

The course was created using dotnet new templates from the 2.0.0-preview1 SDK. Tags in Dockerfiles referred to a generic 2-sdk and not specifically 2.0.0-preview1 so that the Docker aspects of this course wouldn't be affected by 2.0.0's RTM and would have a longer shelf life. That said it's time to update the app code itself to work with the 2.0.0 RTM as the 2-sdk tags now point to RTM images and not preview1 images.

@g0t4
Copy link
Owner Author

g0t4 commented Oct 4, 2017

Currently running the code after building with the new 2.0.0 SDK images results in:

Error:
  An assembly specified in the application dependencies manifest (api.deps.json) was not found:
    package: 'Microsoft.AspNetCore.Antiforgery', version: '2.0.0-preview1-final'
    path: 'lib/netcoreapp2.0/Microsoft.AspNetCore.Antiforgery.dll'
  This assembly was expected to be in the local runtime store as the application was published using the following target manifest files:
    manifest.win7-x64.xml;manifest.win7-x86.xml;manifest.osx-x64.xml;manifest.linux-x64.xml

I'm posting this in case anyone stumbles upon this problem.

@g0t4
Copy link
Owner Author

g0t4 commented Oct 4, 2017

FYI this warning is ok post updating to 2.0.0 RTM, I actually helped with the wording to try to avoid confusion. Learn more about it here: NuGet/Home#5538.

aspnetcore-generator-api/api/api.csproj : warning NU1701: Package 'Faker.Net 1.0.3' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.

If you don't want to see this NuGet warning you have a few choices: https://github.com/NuGet/Home/wiki/Improved-NuGet-warnings

@g0t4 g0t4 closed this as completed Oct 4, 2017
derekguyagoes pushed a commit to derekguyagoes/aspnetcore-generator-api that referenced this issue Jan 3, 2018
mutleyoz pushed a commit to mutleyoz/aspnetcore-generator-api that referenced this issue Oct 21, 2018
Added first unit tests
Added infrastructure docker files
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

1 participant