visual-studio-2015

Is It possible to build asp.net core project using MSBuild from code?

て烟熏妆下的殇ゞ 提交于 2021-02-09 10:39:37
问题 I want to build asp.net core project using another C# project. Here is the sample code. ( I am using Visual Studio 2015) var projectCollection = new Microsoft.Build.Evaluation.ProjectCollection(Microsoft.Build.Evaluation.ToolsetDefinitionLocations.Registry); projectCollection.DefaultToolsVersion = "14.0"; projectCollection.RegisterLogger(new Microsoft.Build.Logging.ConsoleLogger(Microsoft.Build.Framework.LoggerVerbosity.Detailed)); var project = projectCollection.LoadProject(@"H:\Development

Is It possible to build asp.net core project using MSBuild from code?

为君一笑 提交于 2021-02-09 10:35:29
问题 I want to build asp.net core project using another C# project. Here is the sample code. ( I am using Visual Studio 2015) var projectCollection = new Microsoft.Build.Evaluation.ProjectCollection(Microsoft.Build.Evaluation.ToolsetDefinitionLocations.Registry); projectCollection.DefaultToolsVersion = "14.0"; projectCollection.RegisterLogger(new Microsoft.Build.Logging.ConsoleLogger(Microsoft.Build.Framework.LoggerVerbosity.Detailed)); var project = projectCollection.LoadProject(@"H:\Development

Is It possible to build asp.net core project using MSBuild from code?

老子叫甜甜 提交于 2021-02-09 10:34:10
问题 I want to build asp.net core project using another C# project. Here is the sample code. ( I am using Visual Studio 2015) var projectCollection = new Microsoft.Build.Evaluation.ProjectCollection(Microsoft.Build.Evaluation.ToolsetDefinitionLocations.Registry); projectCollection.DefaultToolsVersion = "14.0"; projectCollection.RegisterLogger(new Microsoft.Build.Logging.ConsoleLogger(Microsoft.Build.Framework.LoggerVerbosity.Detailed)); var project = projectCollection.LoadProject(@"H:\Development

Unable to watch variables during debug of T4 templates after updating to Visual Studio 2015 Update 2

与世无争的帅哥 提交于 2021-02-09 03:56:47
问题 After Updating Visual studio 2015 from VS2015 Update 1 to Update 2. I can no longer watch or inspect variable values during T4 template debugging As you can see, the watched variables are not found in the current context. This was previously working in Visual Studio 2015 update 1 Here is a Screenshot in visual studio while debugging a T4 template: 回答1: I had the same trouble. Try this "Debug->Options->Debugging:General-> set checkbox on the Use Managed Compatibility Mode". 回答2: This looks

Typescript HTMLElement disabled 1.4 to 1.6 what happened (TS2339)?

陌路散爱 提交于 2021-02-09 02:55:37
问题 I have been working on a TypeScript project using Visual Studio 2013 and the 1.4 version of the TS language. Just now I've upgraded the Visual Studio 2015, which uses TS 1.6. I have code that uses the "disabled" property of an HTMLElement: var e: HTMLElement = ... e.disabled = true; VS 2015/TS 1.6 now gives me error Code TS2339: "Property 'disabled' does not exist on type 'HTMLElement'. Whoa! 'disabled' is a DOM property, and it used to do something in my code, and now it's no longer defined?

Typescript HTMLElement disabled 1.4 to 1.6 what happened (TS2339)?

不问归期 提交于 2021-02-09 02:45:17
问题 I have been working on a TypeScript project using Visual Studio 2013 and the 1.4 version of the TS language. Just now I've upgraded the Visual Studio 2015, which uses TS 1.6. I have code that uses the "disabled" property of an HTMLElement: var e: HTMLElement = ... e.disabled = true; VS 2015/TS 1.6 now gives me error Code TS2339: "Property 'disabled' does not exist on type 'HTMLElement'. Whoa! 'disabled' is a DOM property, and it used to do something in my code, and now it's no longer defined?

How to open .xproj file in VS2017/2015

喜你入骨 提交于 2021-02-08 14:19:10
问题 I am having a .NET core Project with extension .xproj . When I open the project in VS 2017, the project file .xproj migrated to .csproj . How to open the .xproj file Visual studio 2017 / 2015? Do I need to install any tools? When I tried to open the xproj in VS2015 . It gives the error The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.‌​DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file

How to prevent Visual Studio 2015 Update 2 to add telemetry_main_invoke_trigger?

杀马特。学长 韩版系。学妹 提交于 2021-02-08 12:47:05
问题 A simple C++ console app int main() { return 0; } compiled in Visual Studio 2015 Update 2 adds a call to telemetry_main_invoke_trigger to both Debug and Release binaries. How can I prevent this? 回答1: According to Microsoft’s Steve Carroll (Development Manager for the Visual C++ team), you can remove telemetry calls by adding notelemetry.obj to the command options of the linker: Steve Carroll explained that this will be removed in the upcoming Update 3: Our intent was benign – our desire was

How to programmatically determine the active solution build configuration using MSBuild libraries in Powershell

霸气de小男生 提交于 2021-02-08 11:25:27
问题 I'm in the process of writing a Powershell script that retrieves custom metadata from all the exe/dll projects in a particular C# solution. My efforts have centered around using the Microsoft.MSBuild assembly (Construction and Evaluation namespaces) to parse the solution file and iterate over the projects to retrieve the metadata. This all works well. The next desire is to only concentrate on those projects that are part of the solution Active Build/Platform configuration - those with the

Implement interface with Disposable Pattern

故事扮演 提交于 2021-02-08 05:16:34
问题 Note: This is a Visual Studio 2015 feature only, as far as I know... How can I edit the Implement interface with Disposable Pattern option? This is NOT a question on how to Implement the Dispose Pattern and its variations, but how to edit the option "Implement interface with Disposable Pattern" I would like to remove some comments and add some code on the Disposable Pattern, but I want it to be saved and every time I click " Implement interface with Disposable Pattern ", it implements my code