Ответ 1
project.json заменил AssemblyInfo
.
AssemblyVersionAttribute
заменяется свойством version
version
Type: String
The Semver version of the project, also used for the NuGet package.
AssemblyNameAttribute
теперь имеет свойство 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.
и так далее
Обновление: с объявлением.NET Core Tools MSBuild, .csproj
заменил project.json
. Файл AssemblyInfo.cs
вернулся, но большинство настроек были перенесены непосредственно в .csproj
. См. Соответствующий вопрос SO для получения дополнительной информации: Эквивалент AssemblyInfo в ядре dotnet/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>