project.json заменил AssemblyInfo
.
AssemblyVersionAttribute
заменяется version
собственности
version
Type: String
The Semver version of the project, also used for the NuGet package.
AssemblyNameAttrinbute
теперь name
свойство
name
Type: String
The name of the project, used for the assembly name as well as the name of the package. The top level folder name is used if this property is not specified.
и так далее
Update : Как и при объявлении .NET Core Tools MSBuild, .csproj
заменен project.json
, снова есть файл AssemblyInfo.cs
, но большинство настроек были перенесены непосредственно на .csproj
. См связанной SO вопроса для более подробной информации: Equivalent to AssemblyInfo in dotnet core/csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<Version>1.2.3.4</Version>
<Authors>Author 1</Authors>
<Company>Company XYZ</Company>
<Product>Product 2</Product>
<PackageId>MyApp</PackageId>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion>
<NeutralLanguage>en</NeutralLanguage>
<Description>Description here</Description>
<Copyright>Copyright</Copyright>
<PackageLicenseUrl>License URL</PackageLicenseUrl>
<PackageProjectUrl>Project URL</PackageProjectUrl>
<PackageIconUrl>Icon URL</PackageIconUrl>
<RepositoryUrl>Repo URL</RepositoryUrl>
<RepositoryType>Repo type</RepositoryType>
<PackageTags>Tags</PackageTags>
<PackageReleaseNotes>Release</PackageReleaseNotes>
</PropertyGroup>
Не могли бы вы уточнить, какие атрибуты вы пропускаете и чего боитесь? –
Я нахожу атрибуты избыточными на самом деле: 'AssemblyVersion' (' version'), 'AssemblyTitle' (' title'), 'AssemblyDescription' (' copyright'). Я боюсь придумать некоторые необходимые атрибуты, когда эти сборки будут использоваться в UWP или кросс-платформенных решениях. Как правило, я хотел бы продолжить работу с 'project.json'. – brutallord