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

Build error with the current Git #25

Closed
xcom169 opened this issue May 21, 2021 · 5 comments
Closed

Build error with the current Git #25

xcom169 opened this issue May 21, 2021 · 5 comments
Labels
support Issues reported by a particular user

Comments

@xcom169
Copy link

xcom169 commented May 21, 2021

PS C:\Users\Chome\Downloads\My Games\ualbion-master> .\run.bat
C:\Users\Chome\Downloads\My Games\ualbion-master\build\UAlbion.Api\obj\Debug\netstandard2.0.NETStandard,Version=v2.0.AssemblyAttributes.cs(4,12): error CS0579: Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute [C:\Users\Chome\Downloads\My Games\ualbion-master\src\Api\UAlbion.Api.csproj]
C:\Users\Chome\Downloads\My Games\ualbion-master\build\UAlbion.Api\obj\Debug\netstandard2.0\UAlbion.Api.AssemblyInfo.cs(13,12): error CS0579: Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute [C:\Users\Chome\Downloads\My Games\ualbion-master\src\Api\UAlbion.Api.csproj]
C:\Users\Chome\Downloads\My Games\ualbion-master\build\UAlbion.Api\obj\Debug\netstandard2.0\UAlbion.Api.AssemblyInfo.cs(14,12): error CS0579: Duplicate 'System.Reflection.AssemblyConfigurationAttribute' attribute [C:\Users\Chome\Downloads\My Games\ualbion-master\src\Api\UAlbion.Api.csproj]
C:\Users\Chome\Downloads\My Games\ualbion-master\build\UAlbion.Api\obj\Debug\netstandard2.0\UAlbion.Api.AssemblyInfo.cs(15,12): error CS0579: Duplicate 'System.Reflection.AssemblyFileVersionAttribute' attribute [C:\Users\Chome\Downloads\My Games\ualbion-master\src\Api\UAlbion.Api.csproj]
C:\Users\Chome\Downloads\My Games\ualbion-master\build\UAlbion.Api\obj\Debug\netstandard2.0\UAlbion.Api.AssemblyInfo.cs(16,12): error CS0579: Duplicate 'System.Reflection.AssemblyInformationalVersionAttribute' attribute [C:\Users\Chome\Downloads\My Games\ualbion-master\src\Api\UAlbion.Api.csproj]
C:\Users\Chome\Downloads\My Games\ualbion-master\build\UAlbion.Api\obj\Debug\netstandard2.0\UAlbion.Api.AssemblyInfo.cs(17,12): error CS0579: Duplicate 'System.Reflection.AssemblyProductAttribute' attribute [C:\Users\Chome\Downloads\My Games\ualbion-master\src\Api\UAlbion.Api.csproj]
C:\Users\Chome\Downloads\My Games\ualbion-master\build\UAlbion.Api\obj\Debug\netstandard2.0\UAlbion.Api.AssemblyInfo.cs(18,12): error CS0579: Duplicate 'System.Reflection.AssemblyTitleAttribute' attribute [C:\Users\Chome\Downloads\My Games\ualbion-master\src\Api\UAlbion.Api.csproj]
C:\Users\Chome\Downloads\My Games\ualbion-master\build\UAlbion.Api\obj\Debug\netstandard2.0\UAlbion.Api.AssemblyInfo.cs(19,12): error CS0579: Duplicate 'System.Reflection.AssemblyVersionAttribute' attribute [C:\Users\Chome\Downloads\My Games\ualbion-master\src\Api\UAlbion.Api.csproj]

@xcom169 xcom169 changed the title build error Build error with the current Git May 21, 2021
@csinkers
Copy link
Owner

What version of .NET are you using? i.e. what do you get if you enter dotnet --version at a command prompt?
I'm not seeing these errors after downloading a fresh zip of the repo, extracting and running run.bat

@xcom169
Copy link
Author

xcom169 commented May 21, 2021

I think I have multiple versions installed.
Maybe it's too fresh ? v5.0.203

@csinkers
Copy link
Owner

It won't be that then, mine's working with v5.0.203
The file path of the first file is odd: netstandard2.0.NETStandard,Version=v2.0.AssemblyAttributes.cs
There should be a \ in there after "netstandard2.0" (build\UAlbion.Api\obj\Debug should only contain a netstandard2.0 directory, no files).

@xcom169 xcom169 closed this as completed May 21, 2021
@xcom169 xcom169 reopened this May 25, 2021
@xcom169
Copy link
Author

xcom169 commented May 25, 2021

PS C:\xx\Albion-master> dotnet --list-runtimes
Microsoft.AspNetCore.App 3.1.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

PS C:\Users\xxAlbion-master> dotnet --list-sdks
5.0.203 [C:\Program Files\dotnet\sdk]

@xcom169 xcom169 closed this as completed May 25, 2021
@csinkers
Copy link
Owner

None of that looks like it should be causing a problem, if I download a fresh copy it works and github action builds are working on windows, linux and mac so it must be some weird environmental thing. Some things to try:

  • cloning it with git rather than downloading the zip
  • building with Visual Studio rather than run.bat / the dotnet cmdline utility (Community Edition or VS Code should both work)
  • if those don't work, try compiling using dotnet with full verbosity and I can take a look (upload the results to https://gist.github.com/ or something and link to it, it'll be too long for a comment). Running dotnet run --project src\ualbion -v diag >build.log should compile and write everything to "build.log".

@csinkers csinkers added the support Issues reported by a particular user label Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Issues reported by a particular user
Projects
None yet
Development

No branches or pull requests

2 participants