Skip to content
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

Merged
merged 11 commits into from
Nov 26, 2019

Conversation

hiyadav
Copy link
Contributor

@hiyadav hiyadav commented Nov 19, 2019

No description provided.

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can filename not have '.'?

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@jalajmsft jalajmsft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment

@hiyadav
Copy link
Contributor Author

hiyadav commented Nov 21, 2019

@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.
Do you think it should be done ?

@hiyadav hiyadav merged commit 35e7bc1 into master Nov 26, 2019
leantk pushed a commit that referenced this pull request Dec 23, 2019
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants