visual-studio

ResolveComReference task could not be loaded

你。 提交于 2021-02-18 06:01:26
问题 Win7, VS2017, ASP Net core app, target framework is 4.6. When I try to build my project with CLI (it is needed before dotnet commands calling) the error occurs: C:...\Microsoft.Common.CurrentVersion.targets(2547,5): error MSB4062: The "Microsoft.Build.T asks.ResolveComReference" task could not be loaded from the assembly Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Confirm that the declaration is correct, that the assembly and all its

Change default web browser in Visual Studio

北城余情 提交于 2021-02-18 03:44:05
问题 I'm trying to change the default browser to Chrome at VS Community 2015, I'm not talking about release browser, but the browser that opens when I press CTRL-Click. It opens automatically on Internet Explorer. 回答1: Click the drop down icon next to "Start" project button and choose your web browser 回答2: To change the source default editor: Tools -> Options -> Search for "browser" -> View Source in "external editor" -> put the path to your preferred. 回答3: This is how: Right-click your html file

How to resolve .NET Core package version conflicts

自作多情 提交于 2021-02-17 18:55:06
问题 I am migrating from a .NET MVC 5 Web Application to a .NET Core 2.2 Web API project along with five .NET Standard 2.0 projects all housed under one solution. I am now receiving 28 warnings (MSB3277) regarding package conflicts, which are all within the System namespace. For example, there appears to be a version conflict for System.Collections.Concurrent between Version=4.0.11.0 and Version=4.0.14.0 (see error block below). Troubleshooting attempted: I tried uninstalling all of the .NET Core

Can I copy multiple rows from the Visual Studio “Find Symbol Results” window?

我只是一个虾纸丫 提交于 2021-02-17 18:34:16
问题 Does anyone know how to copy all the lines in the Visual Studio "Find Symbol Results" window onto the clipboard? You can copy a single line, but I want to copy them all. I can't believe that I'm the first one to want to do this, but I can't even find a discussion about this apparently missing feature. 回答1: Here is some code that uses the .Net Automation library to copy all the text to the clipboard. Start a new WinForms project and then add the following references: WindowsBase

Using Google Image Search, Picking first 9 image results using c#.net

不羁的心 提交于 2021-02-17 07:16:47
问题 In Short, I need to figure out how to use Google API's to do a Google Image Search Based off of text in a RichBox named "Title" and ONLY bold words in another RichBox named "Body". The idea of this is to create an Image Suggestion page that will be used to help produce PowerPoint slides. Here is the code I've Tried to Get a Google Image Search going. For Start we have two RichBoxes named "Title" & "Body". Whatever the user types in the "Title" box, it gets stored in a List of "Search Term"

How can I do random name picker in multiple textboxes in c# framwork? [closed]

我的未来我决定 提交于 2021-02-17 07:14:17
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 18 days ago . Improve this question I need help with random name picker in multiple textboxes in c# framwork. Can someone help me with how I can get started? How to think? I would appreciate the help! 回答1: You can call Enumerable.OfType<TResult>(IEnumerable) Method to get the list of all

Simple <Time.h> program takes large amount CPU

最后都变了- 提交于 2021-02-17 07:08:48
问题 I was trying to familiarize myself with the C time.h library by writing something simple in VS. The following code simply prints the value of x added to itself every two seconds: int main() { time_t start = time(NULL); time_t clock = time(NULL); time_t clockTemp = time(NULL); //temporary clock int x = 1; //program will continue for a minute (60 sec) while (clock <= start + 58) { clockTemp = time(NULL); if (clockTemp >= clock + 2) { //if 2 seconds has passed clock = clockTemp; x = ADD(x);

Simple <Time.h> program takes large amount CPU

一笑奈何 提交于 2021-02-17 07:08:06
问题 I was trying to familiarize myself with the C time.h library by writing something simple in VS. The following code simply prints the value of x added to itself every two seconds: int main() { time_t start = time(NULL); time_t clock = time(NULL); time_t clockTemp = time(NULL); //temporary clock int x = 1; //program will continue for a minute (60 sec) while (clock <= start + 58) { clockTemp = time(NULL); if (clockTemp >= clock + 2) { //if 2 seconds has passed clock = clockTemp; x = ADD(x);

Build visual studio C++ project within solution for multiple platforms

你离开我真会死。 提交于 2021-02-17 06:43:45
问题 I have a Visual Studio solution that contains multiple C# projects and a C++ project. The C++ project is properly configured to build both for x64 and win32 (has separate output directories, proper binaries referred for 32 and 64 and so on) and default configuration is x64. C# projects are configured for Any CPU. How can I configure my solution to build the C++ project for both x64 and win32 when building the entire solution? P.S.: Batch build won't do the job for this case because I need to

Build visual studio C++ project within solution for multiple platforms

做~自己de王妃 提交于 2021-02-17 06:43:10
问题 I have a Visual Studio solution that contains multiple C# projects and a C++ project. The C++ project is properly configured to build both for x64 and win32 (has separate output directories, proper binaries referred for 32 and 64 and so on) and default configuration is x64. C# projects are configured for Any CPU. How can I configure my solution to build the C++ project for both x64 and win32 when building the entire solution? P.S.: Batch build won't do the job for this case because I need to