visual-studio-mac

How to Set AutoGenerateBindingRedirects in Visual Studio for Mac?

我与影子孤独终老i 提交于 2019-12-05 01:16:09
问题 I'm currently working on a Xamarin.Forms project named ABCD, using macOS Sierra v10.12.6 and Visual Studio (VS) for Mac v7.3.2 (the set up steps are detailed here). Having successfully set that up, I continue as follows: Right-clicking the main project folder, I select Options . Under Build , in General , under Target Framework : .NET Portable: PCL 4.5 - Profile111 has been automatically selected for me. I switch this to the option right above it: .NET Standard Platform: netstandard1.5 ; then

Conditional reference in Visual Studio Community 2017

青春壹個敷衍的年華 提交于 2019-12-05 00:58:25
I am creating a multi-platform application. I have a multi-targeted shared library (targeting .netstandard 2.0 and .net 4.5)...See project file: <PropertyGroup> <TargetFrameworks>netstandard2.0;net45</TargetFrameworks> </PropertyGroup> When I build the project in visual studio 2017 on windows, I get two directories in the output (netstandard2.0, net45) and the corresponding dlls. The build is a success. When I build the exact same project (same code) in visual studio 2017 on a mac, I get errors of this nature: The type 'OptionAttribute' exists in both 'CommandLine.DotNetStandard, Version=1.0

Dependencies not flowing between dependent projects, causing System.IO.FileNotFoundException

旧巷老猫 提交于 2019-12-04 23:39:57
Let's say my solution has 2 projects: The first called "MainProject" (A .NETStandard 2.0 project). The second called "MainProjectTests" (A NUnit test project) with some unit tests for each class into "MainProject". The first project (MainProject) has a NuGet dependency called "dependencyX". Obviously, the project "MainProjectTests" has a reference to "MainProject". So when the test runner runs a test of "MainProjectTests" that calls methods from "MainProject" using "dependencyX" I'm getting a System.IO.FileNotFoundException exception: System.IO.FileNotFoundException : Could not load file or

Visual Studio for Mac: Guid should contain 32 digits with 4 dashes (xxxx…)

ぐ巨炮叔叔 提交于 2019-12-04 20:18:49
I'm a noob for Visual Studio for Mac. My intention was to check out Xamarin development. My Visual Studio version is 7.3 (Build 799) Community Edition, I've installed on a MB Pro 2015 Mid model. When I try to create a project in following way, Multiplatform App Games (iOS, Mac) SpriteKit Game (2D) And then proceeded with the steps until pressing the create button giving project name and all it just gives me the following Alert and I cannot create the project. Updated: I found following Log by going to "Open Log Directory" menu item. ERROR [2017-12-14 00:46:07Z]: The project could not be

Need lower version of visual studio for mac

独自空忆成欢 提交于 2019-12-04 06:27:57
I just want to download a lower version of Visual Studio for Mac. The current version is 7.5.1 and I want to download 7.4.3. Can anyone tell me where can I get that download file or link? From some guesswork I found it by using this URL : https://dl.xamarin.com/VsMac/VisualStudioForMac-7.4.2.12.dmg Not installed it tho. From this, comment on the 9th May link seems like you have to open a support ticket?!?! As an update on this topic, all of the recent previous Xamarin.iOS, Xamarin.Android, and Xamarin.Mac packages are available in the archives on the open source continuous builds server (under

VS for Mac - Using Autolayout for landscape and portrait views

二次信任 提交于 2019-12-03 20:48:27
I need help, having spent the day searching through various youtube videos and google etc I've hit that wall! I'm using Visual Studio for Mac and basically, my Logon screen looks good in Portrait but not so in Landscape so I want to show a different view with a redesigned screen especially for Landscape. Microsoft Forums suggest that I use the OnSizeAllocated event to work out the orientation which sounds fine but I just can't work out how you do that. I have on View Controller which doesn't have any events. I have one View and that doesn't have any events. If I try to add the code in manually

How to Set AutoGenerateBindingRedirects in Visual Studio for Mac?

与世无争的帅哥 提交于 2019-12-03 16:17:58
I'm currently working on a Xamarin.Forms project named ABCD, using macOS Sierra v10.12.6 and Visual Studio (VS) for Mac v7.3.2 (the set up steps are detailed here ). Having successfully set that up, I continue as follows: Right-clicking the main project folder, I select Options . Under Build , in General , under Target Framework : .NET Portable: PCL 4.5 - Profile111 has been automatically selected for me. I switch this to the option right above it: .NET Standard Platform: netstandard1.5 ; then select OK . After switching this framework, I rebuild the project. After the rebuild, a warning

How to search for file names in Visual Studio?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 00:58:55
问题 In Eclipse you can search for a file in the project by pressing CTRL - SHIFT - R . Is there a way to do this in Visual Studio ? 回答1: Just for anyone else landing on this page from Google or elsewhere, this answer is probably the best answer out of all of them. To summarize, simply hit: CTRL + , And then start typing the file name. 回答2: The best option now is to install Microsoft Visual Studio add on called Productivity Power Tools (VS 2010 version, VS 2013 version). With this comes "Solution

How to search for file names in Visual Studio?

隐身守侯 提交于 2019-12-02 14:19:42
In Eclipse you can search for a file in the project by pressing CTRL - SHIFT - R . Is there a way to do this in Visual Studio ? Hanna Just for anyone else landing on this page from Google or elsewhere, this answer is probably the best answer out of all of them. To summarize, simply hit: CTRL + , And then start typing the file name. friend The best option now is to install Microsoft Visual Studio add on called Productivity Power Tools ( VS 2010 version , VS 2013 version ). With this comes "Solution Navigator" (alternative to Solution Explorer, with a lot of benefits). BTW, this feature is built

Failed to synchronize ****.com teams with Apple Developer Portal.No such host is known. (Xamarin project).?

六眼飞鱼酱① 提交于 2019-12-02 07:13:32
问题 Error : Failed to synchronize ****.com teams with Apple Developer Portal.No such host is known. Apple developer account was working fine but on a sudden showing this error while opening Apple developer accounts from preferences Path--> Visual Studio - Preferences - Apple developer Accounts Visual studio 2019 for mac-version 8.3.8(build 8) Xcode- 11.2 回答1: It's a bug with Visual Studio for Mac. See this "closed" issue or a related one on Microsoft's Visual Studio website as well as a thread on