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
Unable to deploy ASP.NET Core 1.0 app to Azure when it references a .NET Core class library #2072
Comments
Fix is to add a "runtimes" section to the
|
In some earlier email, @vijayrkn wrote:
Vijay can you confirm that this issue is tracked somewhere on your side? Thanks! |
I still get a failure with the fix:
|
My bad, it needs to be added to the Here it is in my own test project: https://github.com/davidebbo-test/AspNetCoreVS/blob/92e01630e7ef5b8549dc9a635dea276bb0395bec/src/MyCoreLib/project.json#L4-L6 |
@davidebbo We have a tfs bug tracking the work required to
|
Awesome, thanks. Please let me and @ahmelsayed know when it's available. Closing this one for now since @jonsagara is unblocked. |
Will the fix involve not needing the runtimes section anymore? I ask because if our class libraries are targeting .NET Standard, isn't that supposed to remove the need to have knowledge of specific framework instances (and by extension, runtimes)? |
This was the original bug created for dotnet cli to fix the default publishing behavior for class lib but this was closed (by design) because class libraries are only supposed to be packed and not published - https://github.com/dotnet/cli/issues/3764#issuecomment-235807800 I have created a bug in the kudu repo to update the script so that while publishing the project in the solution, only the web project in the solution is published and the class lib/console apps in the solution is omitted. |
Problem: I'm unable to deploy an ASP.NET Core 1.0 app to Azure App Service when there are referenced .NET Core 1.0 class libraries.
Repro steps:
Create a ASP.NET Core 1.0 Web App in Visual Studio 2015 w/ Update 3 and RTM tooling.
Commit to git (see commit
7b187403
) and push to GitHub.Set up a new Azure App Service for the web app (http://aspnetcoreazuretest.azurewebsites.net)
Set the Deployment Source as git
Monitor the deployment, and see that it eventually succeeds.
Visit the website and see the default ASP.NET Core 1.0 website as generated by Visual Studio. Success!
(But this is where it fails)
In Visual Studio, right-click on src, and add a new Class Libary (.NET Core) project.
In the original Web App project, right-click on References and add a project reference to the class library added in Step 7.
Commit changes to git, and then push to GitHub.
Get the following error when Azure tries to deploy the latest changes:
Any ideas?
I have a repo that demonstrates the failure:
https://github.com/jonsagara/AspNetCoreAzureTest
The text was updated successfully, but these errors were encountered: