-
Notifications
You must be signed in to change notification settings - Fork 6k
Remove csproj.md file #22277
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
Merged
Merged
Remove csproj.md file #22277
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
bb89d7e
remove csproj file from toc and redirect it
gewarren 543d8ad
move assemblyinfo properties section
gewarren c452ab8
add build events section
gewarren 561be62
add asset attributes
gewarren 5871e2a
delete csproj.md
gewarren 9aa2c08
linting
gewarren 08f3b66
fix up links
gewarren f59f345
resolve merge conflicts
gewarren 5a57942
Apply suggestions from code review
gewarren 3e1cf62
Merge branch 'remove-csproj' of github.com:gewarren/docs into remove-…
gewarren 175fe95
respond to feedback
gewarren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: AssemblyInfo properties | ||
description: Learn about assembly attributes and how they correspond to MSBuild properties in .NET Core 2.1 and later versions. | ||
ms.topic: reference | ||
ms.date: 01/08/2021 | ||
--- | ||
# Map AssemblyInfo attributes to properties | ||
|
||
[Assembly attributes](../../standard/assembly/set-attributes.md) that were typically present in an *AssemblyInfo* file in .NET Core 2.0 and earlier versions are automatically generated from MSBuild properties, starting in .NET Core 2.1. | ||
|
||
## Properties per attribute | ||
|
||
As shown in the following table, each attribute has a corresponding property that controls its content and another that disables its generation: | ||
|
||
| Attribute | Property | Property to disable | | ||
|----------------------------------------------------------------|------------------------|-------------------------------------------------| | ||
| <xref:System.Reflection.AssemblyCompanyAttribute> | `Company` | `GenerateAssemblyCompanyAttribute` | | ||
| <xref:System.Reflection.AssemblyConfigurationAttribute> | `Configuration` | `GenerateAssemblyConfigurationAttribute` | | ||
| <xref:System.Reflection.AssemblyCopyrightAttribute> | `Copyright` | `GenerateAssemblyCopyrightAttribute` | | ||
| <xref:System.Reflection.AssemblyDescriptionAttribute> | `Description` | `GenerateAssemblyDescriptionAttribute` | | ||
| <xref:System.Reflection.AssemblyFileVersionAttribute> | `FileVersion` | `GenerateAssemblyFileVersionAttribute` | | ||
| <xref:System.Reflection.AssemblyInformationalVersionAttribute> | `InformationalVersion` | `GenerateAssemblyInformationalVersionAttribute` | | ||
| <xref:System.Reflection.AssemblyProductAttribute> | `Product` | `GenerateAssemblyProductAttribute` | | ||
| <xref:System.Reflection.AssemblyTitleAttribute> | `AssemblyTitle` | `GenerateAssemblyTitleAttribute` | | ||
| <xref:System.Reflection.AssemblyVersionAttribute> | `AssemblyVersion` | `GenerateAssemblyVersionAttribute` | | ||
| <xref:System.Resources.NeutralResourcesLanguageAttribute> | `NeutralLanguage` | `GenerateNeutralResourcesLanguageAttribute` | | ||
|
||
Notes: | ||
|
||
- `AssemblyVersion` and `FileVersion` default to the value of `$(Version)` without the suffix. For example, if `$(Version)` is `1.2.3-beta.4`, then the value would be `1.2.3`. | ||
- `InformationalVersion` defaults to the value of `$(Version)`. | ||
- If the `$(SourceRevisionId)` property is present, it's appended to `InformationalVersion`. You can disable this behavior using `IncludeSourceRevisionInInformationalVersion`. | ||
- `Copyright` and `Description` properties are also used for NuGet metadata. | ||
- `Configuration`, which defaults to `Debug`, is shared with all MSBuild targets. You can set it via the `--configuration` option of `dotnet` commands, for example, [dotnet pack](../tools/dotnet-pack.md). | ||
|
||
## GenerateAssemblyInfo | ||
|
||
A Boolean that enables or disables the AssemblyInfo generation. The default value is `true`. | ||
|
||
## GeneratedAssemblyInfoFile | ||
|
||
The relative or absolute path of the generated assembly info file. Defaults to a file named *[project-name].AssemblyInfo.[cs|vb]* in the `$(IntermediateOutputPath)` (*obj*) directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.