SonarSource/sonar-scanner-msbuild

Enable package.lock.json generation

gregory-paidis-sonarsource opened this issue · 0 comments

Add this on Directory.Build.targets:

<PropertyGroup>
    <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
    <DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
   <AutomaticallyUseReferenceAssemblyPackages>false</AutomaticallyUseReferenceAssemblyPackages>
</PropertyGroup>

⚠️ A requirement before this is to install the net462 targeting pack on the image. (Source)