aspnetcore-Vue-starter
aspnetcore-Vue-starter copied to clipboard
Duplicate Targetframework attribute
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
dotnet new vuejsdotnet restorenpm installnpm run installdotnet rundotnet 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
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
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!