-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
added .net core 3.0 information and fixed bug for modify output path #11800
Conversation
Tasks/DotNetCoreCLIV2/dotnetcore.ts
Outdated
return path.join(outputBase, path.basename(path.dirname(projectFile))); | ||
let projectFileName = path.basename(projectFile); | ||
let indexOfFileSeperator = projectFileName.indexOf('.'); | ||
projectFileName = projectFileName.slice(0, indexOfFileSeperator ? indexOfFileSeperator : projectFileName.length); |
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.
Can filename not have '.'?
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 should have '.' always when its a csproj file. But at least on windows, file without extensions can exist, hence handled that.
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.
What I meant was what if there are multiple '.' in the file name, for example "a.b.extension". Is this possible?
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.
yeah that's right....
But removed the logic of file name now. Nice catch
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.
Left a comment
@bishal-pdMSFT I made the change to not take the folder of Project file as the project name, but rather take the project file name as the project name. |
2. Revert output folder modification behaviour
… command exection fails
…11800) * added .net core 3.0 information and fixed bug for modify output path * fixed test * 1. Display message at the end 2. Revert output folder modification behaviour * Rephrased the infromational message * Changed message and added the message to be displayed as warning when command exection fails * Message will only be shown as warning if command is publish * Fixed for message to be printed only once
No description provided.