Search code examples
msbuild.net-standardbuild-tools

netstandard.dll missing at GAC on fresh installation


I try to setup clean CI build agent with MSBuild support. I use Build Tools for Visual Studio 2017 and component directory list

Start-Process -Wait -PassThru -FilePath vs_BuildTools.exe -ArgumentList '--add Microsoft.VisualStudio.Workload.NetCoreBuildTools \
    --add Microsoft.VisualStudio.Workload.WebBuildTools \
    --add Microsoft.VisualStudio.Workload.MSBuildTools \
    --add Microsoft.Net.Component.4.5.1.TargetingPack \
    --add Microsoft.Net.Component.4.5.2.TargetingPack \
    --add Microsoft.Net.Component.4.5.TargetingPack \
    --add Microsoft.Net.Component.4.6.TargetingPack \
    --add Microsoft.Net.Component.4.TargetingPack \
    --add Microsoft.Net.ComponentGroup.TargetingPacks.Common \
    --add Microsoft.Net.Component.3.5.DeveloperTools \
    --add Microsoft.Net.Component.4.6.2.SDK \
    --add Microsoft.Net.Component.4.6.2.TargetingPack \
    --add Microsoft.Net.Component.4.7.1.SDK \
    --add Microsoft.Net.Component.4.7.1.TargetingPack \
    --add Microsoft.Net.Component.4.7.SDK \
    --add Microsoft.Net.Component.4.7.TargetingPack \
    --add Microsoft.Net.ComponentGroup.4.6.2.DeveloperTools \
    --add Microsoft.Net.ComponentGroup.4.7.1.DeveloperTools \
    --add Microsoft.Net.ComponentGroup.4.7.DeveloperTools \
    --quiet \
    --nocache \
    --wait'

*Code snippet is part of Dockerfile

I expect netstandard.dll will be locate at GAC (c:\Windows\Microsoft.NET\assembly\GAC_MSIL\netstandard). Which package should I install additionally?


Solution

  • I've installed .NET Framework separately and it works now. Full Dockerfile