kudu: Kudu can't deploy console app referencing netstandard packages
I’m unable to deploy a Console .NET Framework csproj (as a web job) if it contains a reference to a NuGet package that references netstandard2.0.
A repro repository is here: https://github.com/davidmatson/kuduissue2521repro
Here’s the error message I get:
remote: Program.cs(8,40): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. [D:\home\site\repository\ReferenceNetStandard20Library\ReferenceNetStandard20Library.csproj]
remote: Program.cs(8,27): error CS0012: The type 'Dictionary<,>' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. [D:\home\site\repository\ReferenceNetStandard20Library\ReferenceNetStandard20Library.csproj]
remote: Failed exitCode=1, command="D:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\home\site\repository\ReferenceNetStandard20Library\ReferenceNetStandard20Library.csproj" /nologo /verbosity:m /t:Build /p:Configuration=Release;OutputPath="D:\local\Temp\8d4e435d99c9bd6\app_data\jobs\continuous\deployedJob";UseSharedCompilation=false /p:SolutionDir="D:\home\site\repository\.\\"
remote: An error has occurred during web site deployment.
remote:
remote: Error - Changes committed to remote repository but deployment to website failed.
Is Azure Web Apps currently running a preview version of .NET Core 2.0 tooling? I’m able to build locally when using VS 2017 Update 3 with the .NET Core 2.0 SDK (RTM versions of both).
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 19 (8 by maintainers)
Great news - thanks! Any rough estimate for the next release?- (#2528 is another issue hitting the same root cause.)