LoginSignup
1
1

More than 5 years have passed since last update.

error CS0579: Duplicate 'AssemblyVersion' attribute

Posted at

error CS0579: Duplicate 'AssemblyVersion' attribute

新csproject形式になってAssemblyInfo.csが必要なくなった。

解決方法1

素直にAssemblyInfo.csを削除する。
自動で生成されるので必要ない。

カスタマイズしたい場合はプロジェクトのプロパティからパッケージの設定のタブでできる。

解決方法2

なんらかの理由で2015後方互換のためにAssemblyInfo.csを取っておきたい場合

AssemblyInfoの自動生成をOffにする

<GenerateAssemblyInfo>false</GenerateAssemblyInfo>

をcsprojに記述するPropertyGroupの間ならどこでもいい

例 :)

<PropertyGroup>
  <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1