-
Notifications
You must be signed in to change notification settings - Fork 51
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
Change Template source directory layout. #779
Change Template source directory layout. #779
Conversation
…ow the limit. Remove dependency on MSBuilder.
Codecov Report
@@ Coverage Diff @@
## master #779 +/- ##
=======================================
Coverage 10.47% 10.47%
=======================================
Files 496 496
Lines 12125 12125
=======================================
Hits 1270 1270
Misses 10855 10855 Continue to review full report at Codecov.
|
Do the files get restored in all scenarios? What packages are we talking about here? |
The packages are defined in bower.json and are bootstrap, jquery, jquery-validation and jquery-validation-unobtrusive. A package restore occurs immediately after the template is loaded, and before every build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as this also works when the generated project is built outside of Visual Studio I'm good to go.
@@ -74,23 +74,6 @@ | |||
<None Include="wwwroot\images\banner4.svg" /> | |||
<None Include="wwwroot\js\site.js" /> | |||
<None Include="wwwroot\js\site.min.js" /> | |||
<None Include="wwwroot\lib\bootstrap\dist\css\bootstrap-theme.css" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure all of these files are brought back during a dotnet restore
operation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are not brought back by dotnet restore
, but are brought back by dotnet publish
, which is the command that copies the wwwroot folder.
Change template source directory layout to reduce character count below the limit when deploying to the experimental instance. Remove dependency on MSBuilder.
Note: this does not change the layout of the Template when it is created. The files deleted from GoogleAspNetCoreMvc/wwwroot/lib are parts of bower packages that are restored when a package restore is run. The files moved in GoogleAspNetWebApi are placed correctly because the TargetFolderName of the vstemplate file is changed to a path to the correct location. The names of the vstemplate files themselves only change the names of folders but don't have any other visible impact.