visual-studio-mac

How to install Visual Studio for Mac from Terminal (Mac OS)

拜拜、爱过 提交于 2019-12-24 21:23:14
问题 I would like to install Visual Studio for Mac on ssh. Therefore, I have to use Terminal for the installation. I download the .dmg file and copy it from local computer to ssh. Then, I follow this link, but it doesn't work. I still can't use 'mcs' command to compile C# code. Can anyone tell me how to install Visual Studio for Mac via Terminal? 来源: https://stackoverflow.com/questions/49727677/how-to-install-visual-studio-for-mac-from-terminal-mac-os

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

隐身守侯 提交于 2019-12-22 14:05:13
问题 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

Xamarin UI Test sometimes fails to start

半城伤御伤魂 提交于 2019-12-21 06:04:40
问题 Times from times when we try to run our Xamarin UI Tests our app/test fails to start with the following error: System.Net.Http.HttpRequestException : An error occurred while sending the request ----> System.IO.IOException : Unable to write data to the transport connection: The socket has been shut down. ----> System.Net.Sockets.SocketException : The socket has been shut down What is happening? Here is my environment: MacOS High Sierra Visual Studio for Mac 7.6.1 (Build 9) 回答1: Solution: Don't

Problems connecting to local MySQL server

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 21:00:23
问题 I have problems connecting to a local MySQL database. I made sure the server is running and i can connect to the server using the user and password from the connection string and create databases with the terminal. I'm using visual studio community on a mac and MySQL 8.0.16. Example: Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ReadSQL { class Program { static void Main(string[] args) { DataAccess dataAccess = new

Add Service Reference in .NET Core in Visual Studio for Mac

岁酱吖の 提交于 2019-12-14 02:07:45
问题 As far as I know, in Windows I was able to add a service reference in a .NET Core project in Visual Studio 2017 by installing the Visual Studio WCF Connected Service, but I wasn't able to find that same extension in Visual Studio for Mac. Is there any other way of adding a service reference in Mac? 回答1: In Visual Studio for Mac "Community" 7.8.3 (build 2), right-click on the project name in the Solution Explorer. Then select Add -> Add Web Reference. I had the choice between WFC and .NET 2.0

visual studio for mac cannot create workspace

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 17:19:15
问题 I try to manage workspaces in Visual Studio for mac with TFS extension. I don't have any workspace so I click on ManageWorkspaces in SourceControl Explorer. Then I click on add button in order to create a new workspace. It works great until here. I enter workspace name, then I select a working folder. And After I click on OK button, it gives the error that says: Cannot create the workspace. value cannot be null. Parameter name: Computer. It doesn't go through and create a workspace. I follow

Change Background on Timer iOS Xamarin

僤鯓⒐⒋嵵緔 提交于 2019-12-12 05:29:48
问题 I am building an iOS app and I'm trying to change the background image every few seconds. I set up a timer using code from here: https://developer.xamarin.com/api/type/System.Threading.Timer/ My code looks like this: using System; using System.Threading; using UIKit; namespace TestApp { public partial class ViewController : UIViewController { // New Timer class BackgroundTimer { public int counter = 0; public Timer tmr; } // Load screen public override void ViewDidLoad() { base.ViewDidLoad();

TypeLoadException with DocumentClient on Visual Studio Mac

浪子不回头ぞ 提交于 2019-12-12 04:12:51
问题 I downloaded the getting started sample app from Azure Cosmos DB and am getting the following error with Visual Studio Mac System.TypeLoadException: Could not resolve type with token 010000f6 (from typeref, class/assembly System.Diagnostics.Eventing.EventProviderTraceListener, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at Microsoft.Azure.Documents.Client.DocumentClient.Initialize (System.Uri serviceEndpoint, Microsoft.Azure.Documents.Client

DependencyService in Multiplatform library project?

浪子不回头ぞ 提交于 2019-12-11 19:05:35
问题 I am trying to set up DependencyService to call platform specific code in a Multiplatform project. When calling Dependency.Get<IService>() in the Shared project I get null. The Service inside iOS does not seem to register. I have tried to register it like this: [assembly: Dependency(typeof(Service))] - on top of the namespace declaration inside the iOS project. Which I have gotten to work inside a Xamarin.Forms project. And I have also tried to call DependencyService.Register<Service>();

Error MSB4057: The target “Pack” does not exist in the project - Visual Studio for Mac

二次信任 提交于 2019-12-11 06:26:44
问题 I have a project at https://github.com/PandaWood/Simple-MAPI.NET I have always used Build | Create Nuget Package - which always worked - to create a nuget package. I build it on Visual Studio for Mac (using Mono) As of today (assuming an update in Visual Studio has caused this) - I get the error above (the target "Pack" does not exist") I presume this is a bug since I changed no code or configuration since this worked. Any advice on how to get this working again? The error makes no sense to