Skip to content

Commit

Permalink
fix(webpack): linux case sensitivity
Browse files Browse the repository at this point in the history
fixes #734
  • Loading branch information
JeroenVinke committed Sep 4, 2017
1 parent 238b863 commit 2b2d3ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/commands/new/project-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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(
Expand Down

0 comments on commit 2b2d3ce

Please sign in to comment.