microsoft.build

EventSourceException: No Free Buffers available from the operating system

末鹿安然 提交于 2019-12-19 09:09:52
问题 The full exception text is: EventSourceException: No Free Buffers available from the operating system (e.g. event rate too fast). I am calling this method approx a million times because of recursion. It does not stop, I just get the exception text in the Output Debug windown in VS2013. But it is super slow. private static IEnumerable<string> RecursiveFindServices(ISymbol sym, Solution sln) { List<string> list = new List<string>(); var callers = SymbolFinder.FindCallersAsync(sym, sln).Result;

Building a .sln in C# executable

こ雲淡風輕ζ 提交于 2019-12-06 11:10:49
问题 I'm trying to build a .sln in C#. I have the following code. try { Console.WriteLine("Building Solution...\n"); string projectFileName = Directory.GetCurrentDirectory() + "\\build\\Solution.sln"; ProjectCollection pc = new ProjectCollection(); Dictionary<string, string> GlobalProperty = new Dictionary<string, string>(); GlobalProperty.Add("Configuration", "Release"); GlobalProperty.Add("Platform", "x86"); BuildRequestData BuidlRequest = new BuildRequestData(projectFileName, GlobalProperty,

Building a .sln in C# executable

让人想犯罪 __ 提交于 2019-12-04 19:02:41
I'm trying to build a .sln in C#. I have the following code. try { Console.WriteLine("Building Solution...\n"); string projectFileName = Directory.GetCurrentDirectory() + "\\build\\Solution.sln"; ProjectCollection pc = new ProjectCollection(); Dictionary<string, string> GlobalProperty = new Dictionary<string, string>(); GlobalProperty.Add("Configuration", "Release"); GlobalProperty.Add("Platform", "x86"); BuildRequestData BuidlRequest = new BuildRequestData(projectFileName, GlobalProperty, null, new string[] { "Build" }, null); BuildResult buildResult = BuildManager.DefaultBuildManager.Build

BuildManager to use another version of MSBuild

心不动则不痛 提交于 2019-11-27 14:28:17
The following code tries to build a Solution programmatically, using BuildManager : ProjectCollection pc = new ProjectCollection(); pc.DefaultToolsVersion = "12.0"; pc.Loggers.Add(fileLogger); Dictionary<string, string> globalProperty = new Dictionary<string, string>(); BuildRequestData buildRequest = new BuildRequestData(solutionName, globalProperty, null, new[] { "Build" }, null); BuildParameters buildParameters = new BuildParameters(pc) { DefaultToolsVersion = "12.0", OnlyLogCriticalEvents = false, DetailedSummary = true, Loggers = new List<Microsoft.Build.Framework.ILogger> { fileLogger }

BuildManager to use another version of MSBuild

让人想犯罪 __ 提交于 2019-11-26 16:45:23
问题 The following code tries to build a Solution programmatically, using BuildManager : ProjectCollection pc = new ProjectCollection(); pc.DefaultToolsVersion = "12.0"; pc.Loggers.Add(fileLogger); Dictionary<string, string> globalProperty = new Dictionary<string, string>(); BuildRequestData buildRequest = new BuildRequestData(solutionName, globalProperty, null, new[] { "Build" }, null); BuildParameters buildParameters = new BuildParameters(pc) { DefaultToolsVersion = "12.0", OnlyLogCriticalEvents