csinkers / ualbion

A remake of the 1995 RPG Albion (requires data from an install of the original game)
MIT License
133 stars 11 forks source link

Build error with the current Git #25

Closed xcom169 closed 3 years ago

xcom169 commented 3 years ago

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]

csinkers commented 3 years ago

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 commented 3 years ago

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

csinkers commented 3 years ago

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 commented 3 years ago

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]

csinkers commented 3 years ago

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: