visual-studio-mac

CSC: error CS0041: Unexpected error writing debug information — 'Operation is not supported on this platform.'

一世执手 提交于 2020-11-30 11:04:35
问题 Just downloaded Visual Studio Professional for Mac and I cannot seem to build anything as I always get the same error: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets (CoreCompile target) -> CSC: error CS0041: Unexpected error writing debug information -- 'Operation is not supported on this platform.' 19 Warning(s) 1 Error(s) Not sure what to change on my project to get things to compile. 回答1: I was able to work around this problem two ways:

CSC: error CS0041: Unexpected error writing debug information — 'Operation is not supported on this platform.'

本秂侑毒 提交于 2020-11-30 11:04:06
问题 Just downloaded Visual Studio Professional for Mac and I cannot seem to build anything as I always get the same error: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets (CoreCompile target) -> CSC: error CS0041: Unexpected error writing debug information -- 'Operation is not supported on this platform.' 19 Warning(s) 1 Error(s) Not sure what to change on my project to get things to compile. 回答1: I was able to work around this problem two ways:

Can I update to .Net 5 NuGet packages even if I'm using .Net Core 3.1?

僤鯓⒐⒋嵵緔 提交于 2020-11-29 07:52:11
问题 I was looking for some NuGet updates about my project libraries. I see that there are a lot of Microsoft libraries update to v5.0.0. Based on my knowledge I think these are new dependencies released with .Net 5.0 and I'm not sure that I can update these libraries to latest version using .Net Core 3.1 project. Can I update to v5.0.0 libraries even if I'm using/building a .Net Core 3.1 project? 回答1: Unfortunately, you cannot update many of these newest Nuget packages to 5.0. The reason being is

Android Emulator not working with Xamarin / Visual Studio Mac

一曲冷凌霜 提交于 2020-06-28 05:01:25
问题 Hi i'm really struggling to get the Android emulator running on my Mac. What are the steps I need to take to get this working? I've got Visual Studio 2019 on MacOS Catalina This is on a new blank Xamarin Forms project I've tried to go Tools > Device Manager > New Device. Pixel 3 XL , x86_64, Q 10. I keep getting this message: Android emulator component is incomplete therefore the device Pixel 3 XL Q 10.0 - API 29 could not be created. Do you want us to reinstall the Android Emulator? I've

Release build but debugging enabled

会有一股神秘感。 提交于 2020-06-25 07:43:17
问题 I'm trying to export an Android app. I've selected "Release | ARM". It creates a bundle and lists it in the archives section but there's a warning next to it that says, "Archive built with debugging enabled". How can that be, given that it's a release build? How do switch off debugging? 回答1: I'm using Visual Studio for Mac and came across this same "Archive built with debugging enabled" warning after creating an archive of the Android project. To fix this, do the following: Go into the

Release build but debugging enabled

丶灬走出姿态 提交于 2020-06-25 07:43:01
问题 I'm trying to export an Android app. I've selected "Release | ARM". It creates a bundle and lists it in the archives section but there's a warning next to it that says, "Archive built with debugging enabled". How can that be, given that it's a release build? How do switch off debugging? 回答1: I'm using Visual Studio for Mac and came across this same "Archive built with debugging enabled" warning after creating an archive of the Android project. To fix this, do the following: Go into the

Visual Studio for Mac - No Matching Provisioning Profile

一个人想着一个人 提交于 2020-05-30 08:01:55
问题 The Visual Studio for Mac was working perfectly till Yesterday for my both simulator and device builds. But, today I have downloaded and installed a new provision profile with some new capabilities, after that it couldn't identify my provisioning profile even the previous one with old capabilities. I have double checked the bundle identifier name, but no issue with bundler identifier. The same profile is working perfectly with xcode. I have tried development and distribution profile, but no

Visual Studio for Mac cannot select provisioning profile

假装没事ソ 提交于 2020-05-17 07:06:43
问题 I have created a new Mac app project in Xcode, the only change being to specify the bundle id in the target Signing & Capabilities section. I can select the corresponding Provisioning Profile and sign the app. I have created a new Xamarin.Mac project in Visual Studio for Mac 8.5.5 (build 7), the only change being to specify the bundle id in Info.plist. I am unable to select a provisioning profile and so cannot sign the app. The bundle ids are identical. How can I diagnose and fix this problem

how to turn off “warning treaded as error” in visual studio for mac

╄→尐↘猪︶ㄣ 提交于 2020-05-16 04:05:10
问题 I have the following error when I use the visual studio for mac, and I want to turn off this feature. There is no such option in Solution Explorer > Options > Builds .../Serialization.cs(27,27): Error CS0219: Warning as Error: The variable `xmlBuildOption' is assigned but its value is never used (CS0219) (FoundationBase) 回答1: Project Options / Build / Compiler Last item on that property page is "Treat warning as errors" 来源: https://stackoverflow.com/questions/41096334/how-to-turn-off-warning