Skip to content
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

Duplicate Targetframework attribute #90

Open
kai-oswald opened this issue May 1, 2018 · 2 comments
Open

Duplicate Targetframework attribute #90

kai-oswald opened this issue May 1, 2018 · 2 comments

Comments

@kai-oswald
Copy link

Not sure if this is an issue of the template or of dotnet.

Error description

I'm trying to run the application under Ubuntu 16.04 and am getting the following error when building the application the second time. I tried deleting the obj and bin folders, but the error persists.
When building and running the first time all works fine. The error doesn't occur on windows at all only on ubuntu.

/tmp/.NETCoreApp,Version=v2.0.AssemblyAttributes.cs(4,12): error CS0579: `Duplicate attribute "global::System.Runtime.Versioning.TargetFrameworkAttribute". [/var/www/test2/test2.csproj]

Steps to reproduce

  1. dotnet new vuejs
  2. dotnet restore
  3. npm install
  4. npm run install
  5. dotnet run
  6. dotnet run (second time)

Environment

Running dotnet --info:

.NET-Befehlszeilentools (2.1.4)

Product Information:
 Version:            2.1.4
 Commit SHA-1 hash:  5e8add2190

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  16.04
 OS Platform: Linux
 RID:         ubuntu.16.04-x64
 Base Path:   /usr/share/dotnet/sdk/2.1.4/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.5
  Build    : 17373eb129b3b05aa18ece963f8795d65ef8ea54
@jaytonic
Copy link

jaytonic commented Aug 6, 2018

I've the same issue:

D:\Dev\vuetest>dotnet run
obj\Debug\netcoreapp2.0\vuetest.AssemblyInfo.cs(10,12): error CS0579: Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute [D:\Dev\vuetest\vuetest.csproj]
obj\Debug\netcoreapp2.0\vuetest.AssemblyInfo.cs(11,12): error CS0579: Duplicate 'System.Reflection.AssemblyConfigurationAttribute' attribute [D:\Dev\vuetest\vuetest.csproj]
obj\Debug\netcoreapp2.0\vuetest.AssemblyInfo.cs(12,12): error CS0579: Duplicate 'System.Reflection.AssemblyFileVersionAttribute' attribute [D:\Dev\vuetest\vuetest.csproj]
obj\Debug\netcoreapp2.0\vuetest.AssemblyInfo.cs(13,12): error CS0579: Duplicate 'System.Reflection.AssemblyInformationalVersionAttribute' attribute [D:\Dev\vuetest\vuetest.csproj]
obj\Debug\netcoreapp2.0\vuetest.AssemblyInfo.cs(14,12): error CS0579: Duplicate 'System.Reflection.AssemblyProductAttribute' attribute [D:\Dev\vuetest\vuetest.csproj]
obj\Debug\netcoreapp2.0\vuetest.AssemblyInfo.cs(15,12): error CS0579: Duplicate 'System.Reflection.AssemblyTitleAttribute' attribute [D:\Dev\vuetest\vuetest.csproj]
obj\Debug\netcoreapp2.0\vuetest.AssemblyInfo.cs(16,12): error CS0579: Duplicate 'System.Reflection.AssemblyVersionAttribute' attribute [D:\Dev\vuetest\vuetest.csproj]
D:\Dev\vuetest>dotnet --info
.NET Command Line Tools (2.1.202)

Product Information:
 Version:            2.1.202
 Commit SHA-1 hash:  281caedada

Runtime Environment:
 OS Name:     Windows
 OS Version:  6.1.7601
 OS Platform: Windows
 RID:         win7-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.1.202\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.9
  Build    : 1632fa1589b0eee3277a8841ce1770e554ece037

@MarkPieszak
Copy link
Member

Can you give it a shot with the latest published dotnet template (1.0.2)

dotnet new -i aspnetcore-vuejs (should be 1.0.2 now), this one has dotnet 2.1x SDK, that might be what's causing the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants