visual-studio

Visual Studio - Nuget - Unable to load the service index for source

混江龙づ霸主 提交于 2021-02-07 14:05:38
问题 This is my NuGet.config : <?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> </packageSources> <disabledPackageSources> <add key="Microsoft and .NET" value="true" /> </disabledPackageSources> </configuration> Now, in Visual Studio, when I try to install 'geckofx45' package, I get the following error : install-package geckofx45 install-package : Unable to load the service index for

Why doesn't AutoSize property in Windows Form TextBox appear in IntelliSense

孤街浪徒 提交于 2021-02-07 13:42:59
问题 According into the specs (http://msdn.microsoft.com/en-us/library/k63c05yf.aspx) Textboxes in Windows Forms should have an autosize property. And it actually doesn't break when you type in TextBox1.AutoSize = true . However, it doesn't seem to appear in the list of IntelliSense properties. Why is this? I have tried recompiling and it all compiles, but the textbox.autosize property never appears. 回答1: The AutoSize property for TextBox is always true, forced by the constructor. The property is

Why doesn't AutoSize property in Windows Form TextBox appear in IntelliSense

淺唱寂寞╮ 提交于 2021-02-07 13:42:12
问题 According into the specs (http://msdn.microsoft.com/en-us/library/k63c05yf.aspx) Textboxes in Windows Forms should have an autosize property. And it actually doesn't break when you type in TextBox1.AutoSize = true . However, it doesn't seem to appear in the list of IntelliSense properties. Why is this? I have tried recompiling and it all compiles, but the textbox.autosize property never appears. 回答1: The AutoSize property for TextBox is always true, forced by the constructor. The property is

Microservice solution structure in .NET applications

百般思念 提交于 2021-02-07 13:19:31
问题 I'm developing an application using the microservices approach, and I'm having a hard time defining how those microservices will look like on a visual studio project. My initial approach is to create one visual studio solution for every microservice. Every solution will have the following projects: Host Business API Data Access Layer Model Interfaces (for DI) Data Access Mock Tests for Business API So there are 7 projects per microservice. Somehow it feels a lot of projects being

Xamarin.UITesting NU1201 Error: Android 8.1 Is incompatible with .NETFramework 4.6.1

北城余情 提交于 2021-02-07 12:56:47
问题 Have been having a little issue for the last couple of days now where I will create a new Xamarin Forms project on Visual Studio 2017 and add a Xamarin.UITest Cross-Platform Test Project for unit testing I recieve a series of NU1201 Errors when I reference the .Android App in the UITest Project. Here is the exact error i get: Error NU1201 Project App1.Android is not compatible with net461 (.NETFramework,Version=v4.6.1) / win-x64. Project App1.Android supports: monoandroid81 (MonoAndroid

Acessing currently opened solution in a vsix project

你离开我真会死。 提交于 2021-02-07 12:54:17
问题 I want to access the path to currently open solution in Visual Studio from a vsix project. How can I get that? This thread tells if a solution is open or not but gives nothing about the path of the opened solution 回答1: I use this: public string GetInitialFolder(DTE dte) { if (!dte.Solution.IsOpen) return null; return System.IO.Path.GetDirectoryName(dte.Solution.FullName); } But expect it to error, sometimes it cannot return a path! 回答2: I would suggest to avoid EnvDTE as much as possible when

The reference assemblies for framework .NETCore, Version=v5.0 were not found

懵懂的女人 提交于 2021-02-07 12:29:24
问题 I have a UWP project that was created using Visual Studio 2017. It builds fine on this machine (machine 1). However, when I copy the project over to a machine (machine 2) where I only have the Visual Studio 2017 Build Tools installed, and attempt to build it using MSBuild, I get the following error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets (1126,5): error MSB3644: The reference assemblies for framework ".NETCore

Go to declaration in Visual Studio

陌路散爱 提交于 2021-02-07 12:14:40
问题 When we right click and click "Go to declaration" in Visual Studio, it navigates to that method. What is the hotkey to get back where we came from ? 回答1: Ctrl + - will help you....! ;) 回答2: Just another hint: F12 goes to declaration, Shift + F12 finds all references. 回答3: If you have a mouse with a back button, that will take you back too. You can then use the forward button to navigate forward again. 来源: https://stackoverflow.com/questions/4826209/go-to-declaration-in-visual-studio

Go to declaration in Visual Studio

佐手、 提交于 2021-02-07 12:14:39
问题 When we right click and click "Go to declaration" in Visual Studio, it navigates to that method. What is the hotkey to get back where we came from ? 回答1: Ctrl + - will help you....! ;) 回答2: Just another hint: F12 goes to declaration, Shift + F12 finds all references. 回答3: If you have a mouse with a back button, that will take you back too. You can then use the forward button to navigate forward again. 来源: https://stackoverflow.com/questions/4826209/go-to-declaration-in-visual-studio

Visual studio in stuck Generating code

点点圈 提交于 2021-02-07 11:55:38
问题 When I build a c++ project with Visual Studio the process get in stuck while Generating Code : 1>------ Rebuild All started: Project: myWrapper, Configuration: Release Win32 ------ 1> funzioni_ausiliarie.cpp 1> myWrapperFunction.cpp 1> NLP_eta_tre_spline.cpp 1> Generating Code... MSVS is still responding and seems to being working, but I waited more than 10 minutes and it didn't finished. Finally I canceled the process. Instead, building in debug mode it finisces in 20 seconds. I also tried