https://github.com/karenpayneoregon/ms-build-examples
Provides simple MS-Build task examples
https://github.com/karenpayneoregon/ms-build-examples
ccsharp-project csharp11 msbuild-task
Last synced: about 1 year ago
JSON representation
Provides simple MS-Build task examples
- Host: GitHub
- URL: https://github.com/karenpayneoregon/ms-build-examples
- Owner: karenpayneoregon
- Created: 2022-12-05T22:23:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T13:33:37.000Z (almost 2 years ago)
- Last Synced: 2025-05-13T01:17:39.530Z (about 1 year ago)
- Topics: ccsharp-project, csharp11, msbuild-task
- Language: C#
- Homepage: https://dev.to/karenpayneoregon/vs2022-set-working-folder-2ep0
- Size: 1.97 MB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Various examples for MS-Build Task for Visual Studio
Provides examples for MS-Build task that are not what most developers are aware of and can assist in daily coding task. What is presented is just the tip of possiblities which can be accomplished with MS-Build.
| Project | Description |
|:------------- |:-------------|
| MSBuildCopyFiles | Example for copying folders and files to a working folder |
| MsBuildWorkingDirApp | Shows how to set a project working folder |
| MsBuildHidePathInExceptions | Shows how to remove paths from runtime exception messages |
| MSBuildUsingExampleApp | Shows how to use using `directive` aliases |
| MsBuildVersioningApp | Versioning .NET Core project using `Directory.Build.props` |
| SqlServerLibrary | Companion project for MSBuildUsingExampleApp |
| SqlLiteLibrary | Companion project for MsBuildWorkingDirApp |
# References
Microsoft docs
- [MSBuild reference for .NET SDK projects](https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#using)
- [MSBuild task reference](https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-task-reference?view=vs-2022)
- [MSBuild concepts](https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-concepts?view=vs-2022)
- [using directive](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-directive)
- [Customize your build](https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2022) MSBuild projects that use the standard build process (importing Microsoft.Common.props and Microsoft.Common.targets) have several extensibility hooks that you can use to customize your build process.
# Requires
- Microsoft Visual Studio 2022 or higher