netcoretemplates / angular-spa Goto Github PK
View Code? Open in Web Editor NEW.NET 8 Angular 15 with Bootstrap
.NET 8 Angular 15 with Bootstrap
When scaffolding an aspnetcore app for service fabric mesh, the csproj file generated out of the template does not contain the necessary entries to build and run an error-free docker container.
The following entries need to be added to the csproj files to address the problem of including "dist" folder in the final docker container:
<Target Name="NgDebug" BeforeTargets="Build" Condition="'$(Configuration)' == 'Debug'">
<Exec WorkingDirectory="$(ProjectDir)ClientApp" Command="ng build -ec" />
</Target>
<Target Name="NgRelease" BeforeTargets="Build" Condition="'$(Configuration)' == 'Release'">
<Exec WorkingDirectory="$(ProjectDir)ClientApp" Command="ng build --prod" />
</Target>
I am currently encountering an docker build error and I am not too sure exactly where the source of this issue would come from. I can see that the main.js file is not the one that dotnet is expecting to have. I have tried playing around with a few things to solve this, but I am not able to fix it so far. I have noticed that if you run "dotnet publish -c release" in windows cmd, "ng build" will run twice in a row, I do not know if this is by design or not, it may be.
This all could very well just be me doing something wrong, but I have not modified the app whatsoever from the github and from the dotnet template. The docker file is out of date for the dotnet template, but even the updated github repo fails and throws the same error when attempting to build.
Screenshot of the error message:
Any advice, help, or possible fixes would be greatly appreciated. This is an awesome project template that I would really love to use.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.