microsoft / slow-cheetah

Tooling for XML and JSON file transforms on build from Visual Studio and MSBuild
Other
323 stars 67 forks source link

Transform not working after Migration to PackageReference #219

Open mayermart opened 4 years ago

mayermart commented 4 years ago

I think i have the same or a related Issue to #78 After moving from packages.config zu PackagesReferece the ScTransformAppConfig Task (nor any other Sc*Task) runs while Building

It dosnt matter if the Publish target is included or not.

I was able to work around this problem by an explicit call to nuget restore before starting msbuild nuget restore "Solution.sln" -RequireConsent

I use Powershell to start msbuild with this line of code: &$MSBuildPath "$msBuildFilePath" /t:Clean /t:Restore /t:Build /t:Publish /p:Configuration="$configuration" /p:OutputPath=../bin/Release/ /p:GenerateManifests=true /p:PublishUrl="$publishURL" /p:MinimumRequiredVersion="$newVersion"

Is there any way to investigate further?