visual-studio-mac

How to install local NuGet package (.nupkg) from Visual Studio Community for Mac?

眉间皱痕 提交于 2019-12-10 14:44:31
问题 I've created a package with nugget CLI but can't find a way to install it from the IDE, the Package Manager Console isn't available in the version for Mac, and the nuget CLI tries to retrieve the package from the internet instead of reading the .nupkg file. I have VS Community for Mac 7.3.3, mono 5.4.1.7 and nuget 4.3.0.4406 This is what I get when trying to install from the CLI $ nuget install Package.1.0.0.nupkg Feeds used: https://api.nuget.org/v3/index.json GET https://api.nuget.org/v3

Conditional reference in Visual Studio Community 2017

我怕爱的太早我们不能终老 提交于 2019-12-10 01:45:45
问题 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

Tests not picked up with XUnit testrunner on Visual Studio on Mac (C#, .net Core)

时间秒杀一切 提交于 2019-12-07 21:12:27
问题 I am running Visual Studio on Mac (Preview 5, latest) and I am trying to get unit testing with Xunit working. I created a new project for .NET Core -> Tests which creates the following sample code using System; using Xunit; namespace SMASHDOCsTests { public class UnitTest1 { [Fact] public void testFoo() { return; } } } I am able to compile the code properly however I can not execute the tests. It always complains with "Internal error: unable to run tests, test discovery failed". How can I

sample.xcodeproj cannot be opened because the project file cannot be parsed. while opening the Xib file in Xcode interface builder

孤人 提交于 2019-12-07 07:49:30
问题 I am developing an app in Xamarin using Visual Studio for Mac. When I try to open a .xib (or any other interface builder file) in Xcode(8.3) interface builder for designing, I get the error sample.xcodeproj cannot be opened because the project file cannot be parsed. Does anyone have solution to this? 回答1: Visual Studio for Mac Preview 8 (7.0 build 2845) fixes this problem. 回答2: I found that the problem was in Info.plist file. Some of the mandatory fields that are empty cannot be parsed when

Tests not picked up with XUnit testrunner on Visual Studio on Mac (C#, .net Core)

我与影子孤独终老i 提交于 2019-12-06 14:24:49
I am running Visual Studio on Mac (Preview 5, latest) and I am trying to get unit testing with Xunit working. I created a new project for .NET Core -> Tests which creates the following sample code using System; using Xunit; namespace SMASHDOCsTests { public class UnitTest1 { [Fact] public void testFoo() { return; } } } I am able to compile the code properly however I can not execute the tests. It always complains with "Internal error: unable to run tests, test discovery failed". How can I track this error down or resolve it? My current version of Visual Studio for Mac is (v7.0.1.24) -- this is

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

倖福魔咒の 提交于 2019-12-06 13:20:17
问题 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

Mac to EC2 - the source control Triangle Problem - git? rsync? WTH?

久未见 提交于 2019-12-06 10:57:04
I have an everyday EC2 instance. (Indeed, note that those change IPs each time you restart them, a further problem.) There's a folder/ on the instance and I have a simple (say) Node project in folder (mysql, express etc). It's a web site, let's say. So developing on my Mac ... how do you wrangle this? Could run a git repo on the EC2 instance, edit locally on my Mac and push .. but the URL is always changing, nuisance. Visual Studio Community does not unfortunately have any remote-editing, I believe. (And really, you want to end up with the code stored in a repo somewhere, anyway.) I could just

Need lower version of visual studio for mac

大憨熊 提交于 2019-12-06 00:14:22
问题 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? 回答1: 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

sample.xcodeproj cannot be opened because the project file cannot be parsed. while opening the Xib file in Xcode interface builder

谁都会走 提交于 2019-12-05 16:04:21
I am developing an app in Xamarin using Visual Studio for Mac. When I try to open a .xib (or any other interface builder file) in Xcode(8.3) interface builder for designing, I get the error sample.xcodeproj cannot be opened because the project file cannot be parsed. Does anyone have solution to this? Visual Studio for Mac Preview 8 (7.0 build 2845) fixes this problem. I found that the problem was in Info.plist file. Some of the mandatory fields that are empty cannot be parsed when trying to open a .xib file. And in my case Minimum system version field somehow happened to be empty. 来源: https:/

VS for Mac - Using Autolayout for landscape and portrait views

六眼飞鱼酱① 提交于 2019-12-05 06:53:56
问题 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