ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.84k stars 2.02k forks source link

VPC does not generate msbuild-compatible solutions #418

Open TravisWehrman opened 7 years ago

TravisWehrman commented 7 years ago

Builds complete instantly without actually building anything when running msbuild on a VPC generated solution.

Workaround is to open the solution in Visual Studio then save it. This adds the necessary data to the solution file to then be able to build it with msbuild without issue. My use case is when building with CI workers, needed to commit a VS-saved solution file to repository and then CIs can build off of that. The solution file needs to be kept manually updated for any new projects.

VS appends the following to the solution file, after which, msbuild works as expected.

Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|x86 = Debug|x86
        Release|x86 = Release|x86
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {E85D01E5-DA1B-00A2-5D72-A9B6DEA9A995}.Debug|x86.ActiveCfg = Debug|Win32
        {E85D01E5-DA1B-00A2-5D72-A9B6DEA9A995}.Debug|x86.Build.0 = Debug|Win32
        {E85D01E5-DA1B-00A2-5D72-A9B6DEA9A995}.Release|x86.ActiveCfg = Release|Win32
        {E85D01E5-DA1B-00A2-5D72-A9B6DEA9A995}.Release|x86.Build.0 = Release|Win32
        {17BCE59A-9037-EC8D-433E-F81339E2F1BA}.Debug|x86.ActiveCfg = Debug|Win32
        {17BCE59A-9037-EC8D-433E-F81339E2F1BA}.Debug|x86.Build.0 = Debug|Win32
        {17BCE59A-9037-EC8D-433E-F81339E2F1BA}.Release|x86.ActiveCfg = Release|Win32
        {17BCE59A-9037-EC8D-433E-F81339E2F1BA}.Release|x86.Build.0 = Release|Win32
        {A2ACA839-712B-1CD6-60AA-5D1BC7C8BAE6}.Debug|x86.ActiveCfg = Debug|Win32
        {A2ACA839-712B-1CD6-60AA-5D1BC7C8BAE6}.Debug|x86.Build.0 = Debug|Win32
        {A2ACA839-712B-1CD6-60AA-5D1BC7C8BAE6}.Release|x86.ActiveCfg = Release|Win32
        {A2ACA839-712B-1CD6-60AA-5D1BC7C8BAE6}.Release|x86.Build.0 = Release|Win32
        {0B980FCA-5DD4-D8F7-071B-C1246688E80A}.Debug|x86.ActiveCfg = Debug|Win32
        {0B980FCA-5DD4-D8F7-071B-C1246688E80A}.Debug|x86.Build.0 = Debug|Win32
        {0B980FCA-5DD4-D8F7-071B-C1246688E80A}.Release|x86.ActiveCfg = Release|Win32
        {0B980FCA-5DD4-D8F7-071B-C1246688E80A}.Release|x86.Build.0 = Release|Win32
        {DC76828F-1DD4-7E83-371E-EA4058FEE050}.Debug|x86.ActiveCfg = Debug|Win32
        {DC76828F-1DD4-7E83-371E-EA4058FEE050}.Debug|x86.Build.0 = Debug|Win32
        {DC76828F-1DD4-7E83-371E-EA4058FEE050}.Release|x86.ActiveCfg = Release|Win32
        {DC76828F-1DD4-7E83-371E-EA4058FEE050}.Release|x86.Build.0 = Release|Win32
        {129A563E-9F48-79D9-E0C5-EE2DAF7FEAB7}.Debug|x86.ActiveCfg = Debug|Win32
        {129A563E-9F48-79D9-E0C5-EE2DAF7FEAB7}.Debug|x86.Build.0 = Debug|Win32
        {129A563E-9F48-79D9-E0C5-EE2DAF7FEAB7}.Release|x86.ActiveCfg = Release|Win32
        {129A563E-9F48-79D9-E0C5-EE2DAF7FEAB7}.Release|x86.Build.0 = Release|Win32
        {BAB92FF0-D72A-D7E5-1988-74628D39B94F}.Debug|x86.ActiveCfg = Debug|Win32
        {BAB92FF0-D72A-D7E5-1988-74628D39B94F}.Debug|x86.Build.0 = Debug|Win32
        {BAB92FF0-D72A-D7E5-1988-74628D39B94F}.Release|x86.ActiveCfg = Release|Win32
        {BAB92FF0-D72A-D7E5-1988-74628D39B94F}.Release|x86.Build.0 = Release|Win32
        {C805838C-256D-6672-3417-589B6AF7D95E}.Debug|x86.ActiveCfg = Debug|Win32
        {C805838C-256D-6672-3417-589B6AF7D95E}.Debug|x86.Build.0 = Debug|Win32
        {C805838C-256D-6672-3417-589B6AF7D95E}.Release|x86.ActiveCfg = Release|Win32
        {C805838C-256D-6672-3417-589B6AF7D95E}.Release|x86.Build.0 = Release|Win32
        {079933D6-F849-3176-49FC-D50E4B461AC4}.Debug|x86.ActiveCfg = Debug|Win32
        {079933D6-F849-3176-49FC-D50E4B461AC4}.Debug|x86.Build.0 = Debug|Win32
        {079933D6-F849-3176-49FC-D50E4B461AC4}.Release|x86.ActiveCfg = Release|Win32
        {079933D6-F849-3176-49FC-D50E4B461AC4}.Release|x86.Build.0 = Release|Win32
        {95D67225-8415-236F-9128-DCB171B7DEC6}.Debug|x86.ActiveCfg = Debug|Win32
        {95D67225-8415-236F-9128-DCB171B7DEC6}.Debug|x86.Build.0 = Debug|Win32
        {95D67225-8415-236F-9128-DCB171B7DEC6}.Release|x86.ActiveCfg = Release|Win32
        {95D67225-8415-236F-9128-DCB171B7DEC6}.Release|x86.Build.0 = Release|Win32
        {EA02FAE0-2A4F-C7C8-6176-5DEDA8E139E9}.Debug|x86.ActiveCfg = Debug|Win32
        {EA02FAE0-2A4F-C7C8-6176-5DEDA8E139E9}.Debug|x86.Build.0 = Debug|Win32
        {EA02FAE0-2A4F-C7C8-6176-5DEDA8E139E9}.Release|x86.ActiveCfg = Release|Win32
        {EA02FAE0-2A4F-C7C8-6176-5DEDA8E139E9}.Release|x86.Build.0 = Release|Win32
        {33B7DFDC-BECB-3678-1190-6C951E393EB3}.Debug|x86.ActiveCfg = Debug|Win32
        {33B7DFDC-BECB-3678-1190-6C951E393EB3}.Debug|x86.Build.0 = Debug|Win32
        {33B7DFDC-BECB-3678-1190-6C951E393EB3}.Release|x86.ActiveCfg = Release|Win32
        {33B7DFDC-BECB-3678-1190-6C951E393EB3}.Release|x86.Build.0 = Release|Win32
        {394B82B6-3999-E576-5458-2D2EB4229509}.Debug|x86.ActiveCfg = Debug|Win32
        {394B82B6-3999-E576-5458-2D2EB4229509}.Debug|x86.Build.0 = Debug|Win32
        {394B82B6-3999-E576-5458-2D2EB4229509}.Release|x86.ActiveCfg = Release|Win32
        {394B82B6-3999-E576-5458-2D2EB4229509}.Release|x86.Build.0 = Release|Win32
        {C6A1B4E3-DFD8-CD7B-5CBF-D3267A96FF21}.Debug|x86.ActiveCfg = Debug|Win32
        {C6A1B4E3-DFD8-CD7B-5CBF-D3267A96FF21}.Debug|x86.Build.0 = Debug|Win32
        {C6A1B4E3-DFD8-CD7B-5CBF-D3267A96FF21}.Release|x86.ActiveCfg = Release|Win32
        {C6A1B4E3-DFD8-CD7B-5CBF-D3267A96FF21}.Release|x86.Build.0 = Release|Win32
        {EC1C516D-E1D9-BC0A-F79D-E91E954ED8EC}.Debug|x86.ActiveCfg = Debug|Win32
        {EC1C516D-E1D9-BC0A-F79D-E91E954ED8EC}.Debug|x86.Build.0 = Debug|Win32
        {EC1C516D-E1D9-BC0A-F79D-E91E954ED8EC}.Release|x86.ActiveCfg = Release|Win32
        {EC1C516D-E1D9-BC0A-F79D-E91E954ED8EC}.Release|x86.Build.0 = Release|Win32
        {E4F39B89-9731-571D-B69D-C1B8FE56C056}.Debug|x86.ActiveCfg = Debug|Win32
        {E4F39B89-9731-571D-B69D-C1B8FE56C056}.Debug|x86.Build.0 = Debug|Win32
        {E4F39B89-9731-571D-B69D-C1B8FE56C056}.Release|x86.ActiveCfg = Release|Win32
        {E4F39B89-9731-571D-B69D-C1B8FE56C056}.Release|x86.Build.0 = Release|Win32
        {F69B3672-C5E8-CD1A-257F-253A25B5B939}.Debug|x86.ActiveCfg = Debug|Win32
        {F69B3672-C5E8-CD1A-257F-253A25B5B939}.Debug|x86.Build.0 = Debug|Win32
        {F69B3672-C5E8-CD1A-257F-253A25B5B939}.Release|x86.ActiveCfg = Release|Win32
        {F69B3672-C5E8-CD1A-257F-253A25B5B939}.Release|x86.Build.0 = Release|Win32
        {03F753C0-8BA5-FF2B-D7D2-EE230B4683B1}.Debug|x86.ActiveCfg = Debug|Win32
        {03F753C0-8BA5-FF2B-D7D2-EE230B4683B1}.Debug|x86.Build.0 = Debug|Win32
        {03F753C0-8BA5-FF2B-D7D2-EE230B4683B1}.Release|x86.ActiveCfg = Release|Win32
        {03F753C0-8BA5-FF2B-D7D2-EE230B4683B1}.Release|x86.Build.0 = Release|Win32
        {90A78BD4-2532-39D9-6D34-7A3C2648508C}.Debug|x86.ActiveCfg = Debug|Win32
        {90A78BD4-2532-39D9-6D34-7A3C2648508C}.Debug|x86.Build.0 = Debug|Win32
        {90A78BD4-2532-39D9-6D34-7A3C2648508C}.Release|x86.ActiveCfg = Release|Win32
        {90A78BD4-2532-39D9-6D34-7A3C2648508C}.Release|x86.Build.0 = Release|Win32
        {0B6929D0-4447-E035-E47A-EBFCE557D5B3}.Debug|x86.ActiveCfg = Debug|Win32
        {0B6929D0-4447-E035-E47A-EBFCE557D5B3}.Debug|x86.Build.0 = Debug|Win32
        {0B6929D0-4447-E035-E47A-EBFCE557D5B3}.Release|x86.ActiveCfg = Release|Win32
        {0B6929D0-4447-E035-E47A-EBFCE557D5B3}.Release|x86.Build.0 = Release|Win32
        {6B017447-F682-A137-8DF4-4608281F2C9F}.Debug|x86.ActiveCfg = Debug|Win32
        {6B017447-F682-A137-8DF4-4608281F2C9F}.Debug|x86.Build.0 = Debug|Win32
        {6B017447-F682-A137-8DF4-4608281F2C9F}.Release|x86.ActiveCfg = Release|Win32
        {6B017447-F682-A137-8DF4-4608281F2C9F}.Release|x86.Build.0 = Release|Win32
        {81EE9F71-4DFD-8670-B3EA-7B4E931E9845}.Debug|x86.ActiveCfg = Debug|Win32
        {81EE9F71-4DFD-8670-B3EA-7B4E931E9845}.Debug|x86.Build.0 = Debug|Win32
        {81EE9F71-4DFD-8670-B3EA-7B4E931E9845}.Release|x86.ActiveCfg = Release|Win32
        {81EE9F71-4DFD-8670-B3EA-7B4E931E9845}.Release|x86.Build.0 = Release|Win32
        {AC70A841-561F-4DAE-7864-E50541AD99ED}.Debug|x86.ActiveCfg = Debug|Win32
        {AC70A841-561F-4DAE-7864-E50541AD99ED}.Debug|x86.Build.0 = Debug|Win32
        {AC70A841-561F-4DAE-7864-E50541AD99ED}.Release|x86.ActiveCfg = Release|Win32
        {AC70A841-561F-4DAE-7864-E50541AD99ED}.Release|x86.Build.0 = Release|Win32
        {E3E2CF1C-9EE4-3173-C39F-D0D4F5483CB6}.Debug|x86.ActiveCfg = Debug|Win32
        {E3E2CF1C-9EE4-3173-C39F-D0D4F5483CB6}.Debug|x86.Build.0 = Debug|Win32
        {E3E2CF1C-9EE4-3173-C39F-D0D4F5483CB6}.Release|x86.ActiveCfg = Release|Win32
        {E3E2CF1C-9EE4-3173-C39F-D0D4F5483CB6}.Release|x86.Build.0 = Release|Win32
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
EndGlobal