Setting Active Solution Configuration on Visual Studio Mac 2019 - visual-studio-mac

I am confused how to set the active solution configuration for Visual Studio Mac 2019. Doesn't seem as clear cut as the Windows version?
For example - I don't want to build a copy of Windows projects in the solution so I made a Debug-iOS solution that only builds iOS plus the shared Core project. But how do I make it active? You will see in the list it says Debug is the active one "Debug (Active)".
I did not see in the documentation how to actually set the active one:
https://learn.microsoft.com/en-us/visualstudio/mac/create-and-edit-configurations?view=vsmac-2019
https://learn.microsoft.com/en-us/visualstudio/mac/configurations?view=vsmac-2019
Also it seems VS Mac has the concept of Run Configurations which I don't think is in Windows... is this related?

Related

Context menu missing in Visual Studio 2022

The project that I'm working on uses the Visual Studio (2022) extension 'Unchase OpenAPI (Swagger) Connected Services' to generate a C# controller. My colleague and I have both followed a tutorial on Medium to setup this extension, and we have both installed version 1.7.1. However, in the solution explorer, I don't get the context menu item to update the connected service whereas my colleague does. The attached picture shows my environment (upper) and his (lower), and as can be readily seen, I'm missing an option.
So far I've tried to disable and enable the extension, restarting VS, and even restarting the PC.
Any idea why I cannot update the connected service?
It seems it is a bug in Visual Studio 17.2.x. Workaround is to use NSwagStudio, but the template folder has (if you use it) is now relative to a temporary folder, not the one .nswag definition resides into.
https://bytemeta.vip/repo/unchase/Unchase.OpenAPI.Connectedservice/issues/70

Visual Studio 2019 - Option: Optimize rendering for screens with different pixel densities" is grayed out, but requritements are fulfilled

I installed the final Version of Visual Studio 2019. I read that is has this new feature to work correctly on a system with different DPI screens.
The Requirements are "Windows 10, 1803" (I have 1809) and .NET Framework 4.8 (installed the current Preview).
The Option in Visual Studio 2019 is still grayed out.
I have no clue why. - Has anyone else succeeded in activating this setting?
from https://developercommunity.visualstudio.com/comments/578963/view.html
I found what caused the issue. It was a registry key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\devenv.exe]
"dpiAwareness"=dword:00000001
After I deleted it everything works as it should.
Worked on my machine.
The Registry key may have been installed when I re-installed VS2017 after VS2019 lapsed into CPUholism
The final version of .NET Framework 4.8 was released on April 18, 2019. I installed it today, and this option now works in Visual Studio 2019. Upgrade from the preview and you should be good to go: https://dotnet.microsoft.com/download
Another reason why Visual Studio has the option grayed out is that the Visual Studio is run by clicking *.sln file in an app having HIGHDPIAWARE flag set.
The flag is usually set by right clicking the app -> Compatibility -> Change high DPI settings -> Override high DPI scaling behavior. Scaling performed by Application. It will add ~ HIGHDPIAWARE string for the app path to:
Computer\HKEY_USERS\S-1-5-21-786552173-3883971264-3181160094-1001\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
The flag can be removed by UI or deleting the key by regedit.exe from the above registry path.
If you click the *.sln file in a file manager app which has the flag set, Visual Studio Optimize rendering will be disabled.
So just ensure all the parent processes of Visual Studio have the flag disabled.
https://learn.microsoft.com/en-us/visualstudio/ide/reference/general-environment-options-dialog-box?view=vs-2019
As stated in the tip dialog box, windows has a setting "Let Windows try to fix apps so they're not blurry". Turning that off and restarting Visual Studio 2019 fixed this.
Note that I have all the minimum requirements

Visual Studio for Mac- Error CS1902

I just recently swapped my MS PC for an Mac, I'm trying to continue working on an MVC project, but I'm getting an error (Error CS1902: Invalid option 'portable' for /debug; must be full or pdbonly (CS1902)).
Are there any good documents that explain how to make it work? I have seen people porting MVC to .NET Core, but I can't get the analyser to work on my Mac (not sure it's supported yet).
I did two things.
I update the Microsoft.Net.Compliers via nuget.
https://www.nuget.org/packages/Microsoft.Net.Compilers/
Change one value in the properties of project.
https://johnharold.wordpress.com/2017/08/16/csc-error-cs1902-invalid-option-portable-for-debug-must-be-full-or-pdbonly-cs1902/
I wish you can solve the problem
I had this same problem when trying to use Visual Studio for Mac to build a solution that works fine in Windows. Turns out the /debug:portable flag was being passed to the build command, even though the 'Debug Information' was correctly set to 'Full' in my project settings. Search the build output for 'portable' and you will indeed find the flag there regardless of your settings.
The fix is to upgrade the Microsoft.Net.Compilers nuget package. In my case, it upgraded from 1.0 to 2.7, and then the project built successfully.
Right click on the project in the solution explorer and go to
Options, Build, Compiler and change Debug information to Full

how to run SmartStore.NET in visual studio 2015?

how start smartstore.net in visual studio localhost without any error
i download github code and open project file from
SmartStoreNET-3.x\src\SmartStoreNET.sln
The download link https://github.com/smartstoreag/SmartStoreNET
I use visual studio 2015 enterprise edition and windows 10.
First, you must be change the "Solution Configuration" to Debug mode, and second change the "Solution Plataform" to Any CPU.
This work for me.
I recently went through this integration/configuration procedure trying to get a local instance of SmartStore.NET up and running with demo data. I was able to get there eventually, but the development environment setup was by far the most tricky.
I would suggest starting with these two links:
http://docs.smartstore.com/display/SMNET30/Installing+SmartStore.NET
http://docs.smartstore.com/display/SMNET30/How+to+build+SmartStore.NET
I have a hunch you're issue may be your development environment configuration is not fully correct. Check out this page for more details about requirements:
Technology and Prerequisites
http://docs.smartstore.com/pages/viewpage.action?pageId=35555597
*NOTE: they reference ASP.NET 4.5.1 but I had to use 4.61 to take advantage of some newer features in C# 7.0 - Tuples, and several others)
Probably the most significant discovery I found was their were dependency issues when trying to restore the NuGet packages referenced in the solution. I had to go through this process maybe 4 or 5 times to finally get the app running locally.
Once all of this was complete, getting it working in 2015 required little effort.
I would also suggest narrowing your question to more specific problems. (that's just me)

TFS support (plugin, external tool, etc) from within MonoDevelop?

Is there an easy way to integrate TFS for version control into MonoDevelop? I have a new MacBook Pro and an trying to determine which things I can do with Mac native apps and which I will need to run using Parallels.
I downloaded the Microsoft Visual Studio Team Explorer Everywhere 2010 command-line client, and was able to create a workspace, map a working folder and get the latest code. However, it would be nice to perform a get latest from inside MonoDevelop. In the Options there are External Tools I can try and setup, but I thought someone might have already done this. Has anybody done this?
Also, I see the the opentf project lists an alpha-quality MonoDevelop addin in the Feb 4, 2008 Release Notes, but that is two years ago. Has anybody used this?
You can always use Svn Bridge. In order to use it you will need to install it on the TFS server itself. It will then allow your TFS server to communicate via SVN protocol.
I retry to post an answer (sorry for my english i'm french). I has the same problem than you, i make some software for WP7 from visual studio and i use TFS in my compagny and want to make iphone applications with monotouch.
I Try openTF but i need direct integration in monodevelop, i find nothing in the internet and i decide to make my addin.
I release a test version (free of course) than you can try, it's integrate directly in monodevelop with TFS, and work for me on my mac.
You can see my blog at teamaddins.com i think it's can help.
Bruno
The least-bad solution I've come up with for Xamarin + TFS is to set up TFS through a Windows machine as normal, mount the TFS workspace as a SMB fileshare on the Mac, and manage checkouts manually in Visual Studio.
It's klugey, but there doesn't seem to be any reliable TFS tooling available for Mac.

Resources