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
Azure Web App deployment fails to build class library project that uses string interpolation #1659
Comments
Relates to #1405. Seems the reason is that it ends up using |
For now, please try the following simple workaround: in the Azure portal, add the following
We will work on making things work out of the box, but this should get you going! |
Confirmed that the workaround works. Thanks! |
Confirmed workaround works also. |
@mxmissile yep, Portal App Setting, not web.config :) The fix should be in soon, and this will no longer be required. |
Keeping active until we get to deploy. From initial tests, switching to the new msbuild is not completely harmless and could break other scenarios, so we need to do this carefully :) |
@davidebbo so it's not deployed yet? I've tried to delete the /site/deployments/tools/* contents of my website but the new script still generates |
@regisbsb no, it won't happen right away as we need to be careful. Just use the workaround above. It's painless and should completely address the issue until we get to deploy this fix. |
No worries. I was mislead by the closing of the related issue. But it's all
clear now. Maybe we should close all related issues but saying we are
keeping track of a deployment in one specific issue.
|
This is now deployed, and the new msbuild is used by default. |
I have an Azure Web App deployed via git that uses the new C# 6 interpolation feature, but the deployment fails. The actual code using string interpolation resides in a class library project, not the web project.
Using https://github.com/KuduApps/Dev14_Net46_Mvc5, I verified that string interpolation code in the web project does not cause a build failure, and it deploys and runs correctly as an Azure Web App.
I forked the above repo - see the "commonproj" branch in https://github.com/jonsagara/Dev14_Net46_Mvc5. I then created a class library project and referenced it from the web project. I moved the string interpolation code into the class library project in a file named CultureHelper.cs. When I try to deploy this as an Azure Web App via git, I get the following error:
As requested by David Ebbo, I am filing this issue here. Please let me know if you need more information.
Thank you,
Jon
The text was updated successfully, but these errors were encountered: