-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Publish fails in visual studio 2017. #6833
Comments
@hamidmayeli this is likely a dup of https://github.com/dotnet/core-setup/issues/2981 (I think you're on that thread too). Does the workaround I listed there - https://github.com/dotnet/core-setup/issues/2981#issuecomment-322572374 - work for you? |
Yup, looks exactly like https://github.com/dotnet/core-setup/issues/2981. |
@pranavkm - any ideas? |
Not off the top of my head. I'll investigate. |
I have the same issue, the workaround allowed me to run the project in VS but when I publish it I get an error |
As a work around I added this to my csproj file within the PropertyGroup section and it allowed me to publish the app |
@hamidmayeli you would have to configure the same set of services to also work during design time. Precompilation supports this using That said, there are issues with the way the tool loads the type which might require more refactoring (See aspnet/MvcPrecompilation#207) |
@hamidmayeli the other alternative is to disable precompilation the way @proskilly does. |
Closing this since once we have the service collection configured in |
@proskilly Thanks I was able to fix it using the same tag |
Thanks proskilly, |
I got that error when I used <br> tag. Then I changed <br> to <br/> and it got fixed. |
Hi,
I want to publish an "ASP.Net MVC Core 2.0" project, which contains some library as references (They are not NuGets or projects). The project is working fine in the visual studio but it throws the following exception.
The text was updated successfully, but these errors were encountered: