Permalink
Browse files

fix(webpack): linux case sensitivity

fixes #734
  • Loading branch information...
JeroenVinke committed Sep 4, 2017
1 parent 238b863 commit 2b2d3cedfd8e15241cb541ec68ff8765a6f3e35f
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/commands/new/project-template.js
@@ -95,9 +95,10 @@ exports.ProjectTemplate = class {
}
configureJavascriptServices() {
let projFile = 'Project.csproj';
let projFile = 'project.csproj';
if (CLIOptions.hasFlag('here')) {
// use existing csproj if present in project directory
let csProjs = fs.readdirSync(this.root.name).filter(p => path.extname(p) === '.csproj');
if (csProjs.length > 0) {
projFile = csProjs[0];
@@ -121,7 +122,7 @@ exports.ProjectTemplate = class {
ProjectItem.resource('Error.cshtml', 'content/javascriptservices/Views/Shared/Error.cshtml').skipIfExists()
)
),
ProjectItem.resource(projFile, 'content/javascriptservices/Project.csproj').skipIfExists(),
ProjectItem.resource(projFile, 'content/javascriptservices/project.csproj').skipIfExists(),
ProjectItem.resource('Program.cs', 'content/javascriptservices/Program.cs').skipIfExists(),
ProjectItem.resource('Startup.cs', 'content/javascriptservices/Startup.cs')
.buildReadmeIfExists(

0 comments on commit 2b2d3ce

Please sign in to comment.