I am trying to build several c# netstandard2.0 dlls and one netcoreapp3.1 application in DevOps
AssemblyInfo.cs for the .exe contains the following
I can build on my pc.
However the build in DevOps fails with the error
(CoreCompile target) ->
obj\Release\netcoreapp3.1\.NETCoreApp,Version=v3.1.AssemblyAttributes.cs(4,12): error CS0579: Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute
THe task in DevOps is
- task: DotNetCoreCLI@2
inputs:
command: pack
packagesToPack: '**/SBD.*.csproj'
versioningScheme: byPrereleaseNumber
majorVersion: '$(Major)'
minorVersion: '$(Minor)'
patchVersion: '$(Patch)'