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

User config file description update #9900

Merged
merged 4 commits into from
Jan 10, 2024

Conversation

maridematte
Copy link
Contributor

Added a bit more info on the .user configuration file for MSBuild, since we did not have a lot previously.

Copy link
Contributor

@maridematte : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@maridematte
Copy link
Contributor Author

@baronfel, update on the .user file description. Please check of we should add more details or if this is enough about it.

Copy link
Contributor

Learn Build status updates of commit ca42e07:

✅ Validation status: passed

File Status Preview URL Details
docs/msbuild/customize-your-local-build.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@Court72
Copy link
Contributor

Court72 commented Dec 15, 2023

@ghogen

Can you review the proposed changes?

When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@Court72 Court72 added the aq-pr-triaged tracking label for the PR review team label Dec 15, 2023
Copy link
Contributor

Learn Build status updates of commit 7c24d70:

⚠️ Validation status: warnings

File Status Preview URL Details
docker/tutorials/docker-tutorial.md ⚠️Warning Details
docker/tutorials/docker-tutorial-share.md ⚠️Warning Details
docker/tutorials/tutorial-multi-container-app-mysql.md ⚠️Warning Details
docker/tutorials/tutorial-persist-data-layer-docker-app-with-vscode.md ⚠️Warning Details
docs/azure/azure-app-insights-add-connected-service.md ⚠️Warning Details
docs/azure/azure-cache-for-redis-add-connected-service.md ⚠️Warning Details
docs/azure/azure-cosmosdb-add-connected-service.md ⚠️Warning Details
docs/azure/azure-deployment-using-github-actions.md ⚠️Warning Details
docs/azure/azure-signalr-add-connected-service.md ⚠️Warning Details
docs/azure/azure-sql-database-add-connected-service.md ⚠️Warning Details
docs/azure/cloud-services-extended-support.md ⚠️Warning Details
docs/azure/end-to-end-deployment-entity-framework-core-github-actions.md ⚠️Warning Details
docs/azure/how-to-get-publish-profile-from-azure-app-service.md ⚠️Warning Details
docs/azure/how-to-sign-in-with-azure-subscription.md ⚠️Warning Details
docs/azure/index.yml ⚠️Warning Details
docs/azure/overview.md ⚠️Warning Details
docs/azure/overview-azure-integration.md ⚠️Warning Details
docs/azure/overview-connected-services.md ⚠️Warning Details
docs/azure/overview-github-actions.md ⚠️Warning Details
docs/azure/vs-active-directory-add-connected-service.md ⚠️Warning Details
docs/azure/vs-active-directory-error.md ⚠️Warning Details
docs/azure/vs-azure-tools-access-private-azure-clouds-with-visual-studio.md ⚠️Warning Details
docs/azure/vs-azure-tools-azure-project-create.md ⚠️Warning Details
docs/azure/vs-azure-tools-cloud-service-project-managing-roles.md ⚠️Warning Details
docs/azure/vs-azure-tools-cloud-service-publish-set-up-required-services-in-visual-studio.md ⚠️Warning Details

This comment lists only the first 25 files in the pull request.

docker/tutorials/docker-tutorial.md

  • Line 7, Column 10: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: vs-code' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: vs-code'.

docker/tutorials/docker-tutorial-share.md

  • Line 7, Column 10: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: vs-code' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: vs-code'.

docker/tutorials/tutorial-multi-container-app-mysql.md

  • Line 6, Column 10: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: vs-code' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: vs-code'.

docker/tutorials/tutorial-persist-data-layer-docker-app-with-vscode.md

  • Line 6, Column 10: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: vs-code' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: vs-code'.

docs/azure/azure-app-insights-add-connected-service.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/azure-cache-for-redis-add-connected-service.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/azure-cosmosdb-add-connected-service.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/azure-deployment-using-github-actions.md

  • Line 12, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-ide-deployment' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: deployment'.

docs/azure/azure-signalr-add-connected-service.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/azure-sql-database-add-connected-service.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/cloud-services-extended-support.md

  • Line 8, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/end-to-end-deployment-entity-framework-core-github-actions.md

  • Line 10, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-ide-deployment' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: deployment'.

docs/azure/how-to-get-publish-profile-from-azure-app-service.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/how-to-sign-in-with-azure-subscription.md

  • Line 5, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/index.yml

  • Line 10, Column 18: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/overview.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/overview-azure-integration.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/overview-connected-services.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/overview-github-actions.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/vs-active-directory-add-connected-service.md

  • Line 7, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/vs-active-directory-error.md

  • Line 7, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/vs-azure-tools-access-private-azure-clouds-with-visual-studio.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/vs-azure-tools-azure-project-create.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/vs-azure-tools-cloud-service-project-managing-roles.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

docs/azure/vs-azure-tools-cloud-service-publish-set-up-required-services-in-visual-studio.md

  • Line 6, Column 16: [Warning: value-deprecated-replace - See documentation] The 'ms.prod: visual-studio-windows, ms.technology: vs-azure' you used is now deprecated and can no longer be used. We suggest you replace it with 'ms.service: visual-studio-windows, ms.subservice: azure-development'.

This comment lists only the first 25 errors (including error/warning/suggestion) in the pull request.
For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@ghogen ghogen merged commit 330e139 into MicrosoftDocs:main Jan 10, 2024
2 checks passed
@@ -18,7 +18,12 @@ When you work in a team that used a code repository like GitHub, source control,

## .user file

*Microsoft.Common.CurrentVersion.targets* imports `$(MSBuildProjectFullPath).user` if it exists, so you can create a file next to your project with that additional extension. For long-term changes you plan to check into source control, prefer changing the project itself, so that future maintainers do not have to know about this extension mechanism.
Using `$(MSBuildProjectFullPath).user`, also referred as `.user` file in this context, is also an option. This file is intended to keep extensions, options, or variables that are specific to your local machine. It is not intended to be uploaded to source control, and it is automatically checked on `.gitignore`. For more extensive changes prefer changing the project itself, so that future maintainers do not have to know about this extension mechanism.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Using `$(MSBuildProjectFullPath).user`, also referred as `.user` file in this context, is also an option. This file is intended to keep extensions, options, or variables that are specific to your local machine. It is not intended to be uploaded to source control, and it is automatically checked on `.gitignore`. For more extensive changes prefer changing the project itself, so that future maintainers do not have to know about this extension mechanism.
Using `$(MSBuildProjectFullPath).user`, also referred as `.user` file in this context, is also an option. This file is intended to keep extensions, options, or variables that are specific to your local machine. It is not intended to be uploaded to source control, and it is automatically excluded in the default Visual Studio `.gitignore`. For more extensive changes prefer changing the project itself, so that future maintainers do not have to know about this extension mechanism.

*Microsoft.Common.CurrentVersion.targets* imports `$(MSBuildProjectFullPath).user` if it exists, so you can create a file next to your project with that additional extension. For long-term changes you plan to check into source control, prefer changing the project itself, so that future maintainers do not have to know about this extension mechanism.
Using `$(MSBuildProjectFullPath).user`, also referred as `.user` file in this context, is also an option. This file is intended to keep extensions, options, or variables that are specific to your local machine. It is not intended to be uploaded to source control, and it is automatically checked on `.gitignore`. For more extensive changes prefer changing the project itself, so that future maintainers do not have to know about this extension mechanism.

On supported multitargeted projects the `.user` file is automatically imported in inner builds and outer builds, so you can just create the file within the solution. If you are working on another type of build, you can still use the `.user` file. You can create it within your solution and then import it in your project file.
Copy link
Contributor

Choose a reason for hiding this comment

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

"inner" and "outer" builds are not generally user-facing concepts, so I'm not sure this is the best way to phrase this. @ghogen, what happened is that prior to 17.9, the .user file was imported only for the inner build, so it wasn't usable to tweak things like packaging. @maridematte made it more consistent for 17.9+. See dotnet/msbuild#9131 / dotnet/msbuild#9558. Can you think of a way to say that that's a bit more friendly?

Comment on lines +23 to +26
On supported multitargeted projects the `.user` file is automatically imported in inner builds and outer builds, so you can just create the file within the solution. If you are working on another type of build, you can still use the `.user` file. You can create it within your solution and then import it in your project file.
```xml
<Import Project="$(MSBuildProjectFullPath).user" Condition="Exists('$(MSBuildProjectFullPath).user')"/>
```
Copy link
Contributor

Choose a reason for hiding this comment

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

What motivated the "do it manually for a custom project type" stuff @maridematte? It's good advice but I'm not sure if users will be looking for that kind of thing in the context of this document.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this is one of the only places that mention .user files I thought to add this bit here as it would feel out of place anywhere else. I think it is a useful bit of information to have in the docs and since it is short enough I think it is ok to add here even if it doesn't completely fit with the context of the document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants