Last post Sep 06, 2019 03:20 AM by Rena Ni
Sep 05, 2019 05:36 PM|afrika|LINK
based on this earlier question https://forums.asp.net/t/2159439.aspx?Best+practices+updating+a+compiled+project
is there a way to do a quick compilation of my project file, files specific folder etc, rather than wait and to get the compilation of an entire project or solution ?
Sep 05, 2019 06:19 PM|mgebhard|LINK
You can certainly build a library by right clicking the library project and selecting build. The build menu also has this feature.
Sep 05, 2019 06:29 PM|afrika|LINK
sorry i meant pubnlish
Sep 05, 2019 06:40 PM|mgebhard|LINK
A library can be deployed once built as long as changes to the library to not affect other libraries/projects. For example adding a field might ripple through to the UI.
I run ASP.NET Core in watch mode which compiles the app when source files change.
Watch has nothing to do with publishing but it saves time while developing.
Is there a specific problem you are trying to solve? Continuous development?
Sep 06, 2019 03:20 AM|Rena Ni|LINK
is there a way to do a quick compilation of my project file, files specific folder etc
If you want to compile and publish a folder separately in the .net core project,as far as I known it is impossible.As mike said in your previous question,the Models and controllers are compiled to projectname.dll. Cshtml files (Razor Pages, MVC Views, partials,
layouts etc) are compiled to projectname.Views.dll when publishing the .net core project. There is no separate folder publishing file.
For quick compilation,you could use dotnet watch in order to update your publishing project in real time during development, just as mgebhard said, you can also refer to the link on how to use dotnet watch: