diff --git a/source/Cosmos.sln b/source/Cosmos.sln index 3fd42f53a..72e654d36 100644 --- a/source/Cosmos.sln +++ b/source/Cosmos.sln @@ -110,6 +110,7 @@ Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Docs", "..\Docs", "{67E7DEF Release.AspNetCompiler.ForceOverwrite = "true" Release.AspNetCompiler.FixedNames = "false" Release.AspNetCompiler.Debug = "False" + VWDPort = "34581" EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmos.Compiler.Debug", "..\source2\IL2CPU\Cosmos.IL2CPU.Debug\Cosmos.Compiler.Debug.csproj", "{9998B4EA-385E-4DA2-8905-2BBEB5B2C6E2}" @@ -1167,6 +1168,7 @@ Global {6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU {6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU {6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Debug|x86.ActiveCfg = Debug|Any CPU + {6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Debug|x86.Build.0 = Debug|Any CPU {6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Release|Any CPU.ActiveCfg = Release|Any CPU {6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Release|Any CPU.Build.0 = Release|Any CPU {6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU diff --git a/source2/VSIP/Cosmos.VS.Package/VSProjectNode.cs b/source2/VSIP/Cosmos.VS.Package/VSProjectNode.cs index 38ba2169c..1a6e84251 100644 --- a/source2/VSIP/Cosmos.VS.Package/VSProjectNode.cs +++ b/source2/VSIP/Cosmos.VS.Package/VSProjectNode.cs @@ -48,12 +48,11 @@ namespace Cosmos.VS.Package //var xReferenceContainer = GetReferenceContainer(); return base.Build(vsopts, config, output, target); - } + } - protected override MSBuildResult InvokeMsBuild(string target) + internal override void BuildAsync(uint vsopts, string config, IVsOutputWindowPane output, string target, Action uiThreadCallback) { - // remove it, no really function in it Trivalik - /*var xSolutionBuildManager = (IVsSolutionBuildManager)this.GetService(typeof(IVsSolutionBuildManager)); + var xSolutionBuildManager = (IVsSolutionBuildManager)this.GetService(typeof(IVsSolutionBuildManager)); var xSolution = (IVsSolution)this.GetService(typeof(IVsSolution)); if (xSolutionBuildManager != null && xSolution != null) { @@ -68,11 +67,20 @@ namespace Cosmos.VS.Package { if (xGuid != this.ProjectIDGuid) { - return MSBuildResult.Successful; + uiThreadCallback(MSBuildResult.Successful, "Skipped"); + output.OutputStringThreadSafe("Project skipped, as it's not necessary for running"); + return; } } } - }*/ + } + base.BuildAsync(vsopts, config, output, target, uiThreadCallback); + } + + protected override MSBuildResult InvokeMsBuild(string target) + { + // if the project is not set as startup project, don't build the iso + return base.InvokeMsBuild(target); }