标签: visual-studio-mac

无法在macOS Sierra上安装Visual Studio for Mac Preview

macOS Sierra 10.12.2上,Visual Studio for Mac Preview无法安装.安装版本是3.0.0.(1).

软件要求全部安装,但安装程序在某些时候无法检测到Android SDK:

[2017-01-12 10:08:52.260] [Debug] Detecting software item 'Mono Framework'
[2017-01-12 10:08:52.260] [Info] Checking whether Mono needs update/installation
[2017-01-12 10:08:52.260] [Debug] In IsCurrentMonoNewEnough
[2017-01-12 10:08:52.260] [Debug] current == /Library/Frameworks/Mono.framework/Versions/Current
[2017-01-12 10:08:52.260] [Debug] current symlink: /Library/Frameworks/Mono.framework/Versions/4.6.2
[2017-01-12 10:08:52.260] [Debug] file name: 4.6.2
[2017-01-12 10:08:52.261] [Debug] parsed version: 4.6.2
[2017-01-12 10:08:52.261] [Info] Mono 4.8.0 needs to be installed.
[2017-01-12 10:08:52.362] [Info] Status: successful
[2017-01-12 10:08:52.362] [Info] Software item 'Mono Framework': not …
Run Code Online (Sandbox Code Playgroud)

xamarin xamarin-studio android-studio visual-studio-mac

7
推荐指数
1
解决办法
3820
查看次数

VSOS上的macOS:找不到文件/bin\roslyn\csc.exe".路径问题

我正在尝试使用VS Preview在Mac上运行MS Bot构建器示例.每次我尝试运行应用程序时都会收到错误500并且:

Could not find file "/Users/*****/BotBuilder-master/CSharp/Samples/PizzaBot/bin\roslyn\csc.exe".
Run Code Online (Sandbox Code Playgroud)

CSC位于预期的位置,但路径显然是错误的.我发现这个SO帖子在debian上有类似问题mono:找不到文件"/srv/www/proj/bin\roslyn\csc.exe" 但是因为我从VS运行代码,我不能只修改Apache服务器.

有什么建议?

asp.net macos mono roslyn visual-studio-mac

7
推荐指数
1
解决办法
1238
查看次数

如何在Visual Studio for Mac上开发Windows应用程序

我最近买了一台iMac,以便在更好的环境中在Visual Studio for Mac上开发我的应用程序(在Windows上有很多问题),但在Visual Studio for Mac上,没有UWP项目.

据我所知,我必须创建一个新的.NET项目,但为了正确地实现该应用程序以便在Windows上工作,应该遵循哪些步骤才能让您高枕无忧?我应该使用完全支持.NET核心框架的Visual Studio代码吗?

我在其他答案中看到我需要.NET SDK工具,等等,但是如果你不介意为什么(不是安装的东西,只有对应用程序正确构建的技术娴熟的解释),还需要进一步的细节.结束!

谢谢

cross-platform xamarin uwp visual-studio-mac

7
推荐指数
2
解决办法
1万
查看次数

Visual Studio Mac无法运行ASP.NET核心项目

事后看来,这可能非常明显.安装新的VS Mac并创建ASPNET Core项目时,我无法通过单击左上角的运行按钮来运行它.

如果我右键单击Web项目,单击"Run With",然后单击"Custom Configuration",我就可以运行.效果很好.

但是,运行项目已禁用,我无法想出任何启用它的方法:http://prntscr.com/f7rsgh

visual-studio-mac

7
推荐指数
1
解决办法
926
查看次数

如何在Visual Studio for Mac中重置窗口布局

是否可以在Visual Studio for Mac中重置窗口布局?我可以在Windows上为Visual Studios执行此操作,但不能在Mac版本上执行此操作.

visual-studio-mac

7
推荐指数
1
解决办法
2130
查看次数

使用Mac的Visual Studio在解决方案资源管理器中复制客户端文件

使用dotnet cli v2.1.4我使用下载了Spa模板dotnet new --install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0。然后,我使用创建了一个有角度的项目dotnet new angular -o my-project。然后,我打开了Visual Studio for Mac,并打开了.csproj由cli为上述项目生成的文件。呈现了解决方案,但可悲的是,即使每个文件只有一个副本出现在查找程序中或ls在目录中使用,客户端文件也都被复制了。我发现服务器线程存在相关问题,建议卸载项目,等等。我尝试了这些解决方案,但遗憾的是问题仍然存在,请参见所附图片。服务器端文件不重复。重复文件的屏幕截图

visual-studio asp.net-core visual-studio-mac angular

7
推荐指数
1
解决办法
1687
查看次数

尝试发布到GooglePlay appStore会出现错误403

尝试上传应用程序的版本39,我收到的错误消息是:

上传'foo.bar.baz'时出错

任何设备都无法下载此应用的第38版,因为它们都会收到包含更高版本代码的APK.[403]

截图: VSMac错误截图

这到底是什么意思?我正试图从VisualStudio for Mac发布为"Alpha"(alpha通道的当前版本38是手动上传的.)

android xamarin.android google-play xamarin visual-studio-mac

7
推荐指数
1
解决办法
551
查看次数

如何将 Visual Studio for Mac OS 连接到 Azure Dev Ops/VSTS?

我在 Azure Dev Ops 中有一个需要连接的项目,我正在使用 Visual Studio for Mac。

通常在 PC 上,我可以单击“版本控制”或“项目”并浏览到它,然后进行同步。但是,我不这么认为。

此外,当我查看网站中的项目时,我没有看到任何可用于粘贴到存储库配置中的 URL。

VSTS 配置屏幕图像

git azure-devops visual-studio-mac

7
推荐指数
2
解决办法
2万
查看次数

Visual Studio for Mac:日志在一个项目上工作并显示在Azure上,但在相同解决方案的另一个项目上失败

在解决方案的主要项目中,我有:

public static void Main(string[] args)
{
    // Testing Logs on Azure Application Insights: 
    var telemetry = new Microsoft.ApplicationInsights.TelemetryClient();
    telemetry.TrackTrace("Test of ApplicationInsights.TelemetryClient() on Program.cs");

    CreateWebHostBuilder(args).Build().Run();     
}
Run Code Online (Sandbox Code Playgroud)

它正在工作,并且日志正在Azure应用程序见解中显示。

不幸的是,当我将相同的代码添加到相同解决方案的另一个项目中时,它不起作用:而是在Azure上引发异常。

我尝试添加对主项目的引用(因为我认为这将导入其项目和其他所需的内容)。不幸的是我不能,因为它说:

不允许循环依赖

因此,我在解决方案的其他项目中添加了相同的细节。这样,它便可以编译,并且我可以上传到Azure。但是由于该错误,我看不到日志(跟踪):

Azure屏幕截图

在Azure上显示的日志的文本版本(Trace):

AI (Internal): [Microsoft-ApplicationInsights-AspNetCore-StartupBootstrapper] Could not load Microsoft.AspNetCore.ApplicationInsights.HostingStartup. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.ApplicationInsights.HostingStartup, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.AspNetCore.ApplicationInsights.HostingStartup, Culture=neutral, PublicKeyToken=null'
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, IntPtr ptrLoadContextBinder)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, RuntimeAssembly …
Run Code Online (Sandbox Code Playgroud)

c# azure circular-reference nuget visual-studio-mac

7
推荐指数
1
解决办法
89
查看次数

无法将 Visual Studio 连接到 mac

我试图让 Visual Studio 2019(社区版)与 Mac 一起使用来创建移动应用程序 iOS 和 Android。不幸的是,我整天都在为这种组合而苦苦挣扎。

我目前无法解决的问题是 Windows 上的 Visual Studio 中的以下错误:

An unexpected error occurred while checking the SSH configuration of '192.168.178.74'
An item with the same key has already been added.
Run Code Online (Sandbox Code Playgroud)

我尝试更改虚拟机的 MAC 地址以获取新的 IP 地址,但没有成功

我的设置:

  • Visual Studio 2019 社区与 Xamarin
  • 与 Windows 10 相同的机器上的 VM Ware 中的 Mac OS Catalina
  • Xcode 11.3.1
  • Visual Studio for Mac 社区 8.4.8(内部版本 2)

顺便提一句。我忘了提到,可以从 Windows 通过 ssh 登录到 Mac。

xamarin visual-studio-mac visual-studio-2019

7
推荐指数
2
解决办法
3035
查看次数