IsolatedEnv and empty SolutionConfigurationPlatforms: "escapedValue" cannot be null
set __vssbe_diag= true to enable diagnostic mode. Error when loading: 'System.ArgumentNullException: Parameter "escapedValue" cannot be null. at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowArgumentNull(Object parameter, String parameterName, String resourceName) at Microsoft.Build.Execution.ProjectPropertyInstance.Create(String name, String escapedValue, Boolean mayBeReserved, ElementLocation location, Boolean isImmutable) at Microsoft.Build.Evaluation.ProjectCollection.SetGlobalProperty(String name, String value) at net.r_eg.vsSBE.IsolatedEnv..ctor(String solutionFile, IDictionary`2 properties) at net.r_eg.vsSBE.API.EventLevel.load(String sln, Dictionary`2 properties, ISettings cfg) at net.r_eg.vsSBE.Provider.Loader.load(String solutionFile, Dictionary`2 properties, String libPath, Boolean createDomain) at net.r_eg.vsSBE.Provider.Loader.load(String solutionFile, Dictionary`2 properties, String libPath) at net.r_eg.vsSBE.CI.MSBuild.Initializer.load(InitializerProperties prop)' MSBUILD : Logger error MSB1029: Fatal error Build failed.
Possible when no SolutionConfigurationPlatforms records inside .sln, for example, projects such https://github.com/3F/GetNuTool
set cim=packages\vsSolutionBuildEvent\cim.cmd call %cim% "gnt.sln" /v:m /m:4
Temp solution
Either define any values for Configuration/Platform when invoking:
call %cim% "gnt.sln" /v:m /m:4 /p:Configuration=Release /p:Platform=x64
Or add SolutionConfigurationPlatforms with default value for .sln
Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU EndGlobalSection
v
call %cim% "gnt.sln" /v:m /m:4 /p:Configuration=Release :: now platform will be considered as /p:Platform=Any CPU