After installing VS2012 CTP1, the C# interactive throws an error like below:
Value cannot be null.
Parameter name pSrcNativeVariant
I tried uninstall and reinstall Roslyn CTP but with no success. Any idea?
It seems that I have to answer my own question, once again:). I today found out that actually it's that Mono for Android plugin for VS2012 is the culprit. After uninstalling it, Roslyn is back to normal.
Related
I am unable to debug a Xamarin.iOS application out of JetBrains Rider 2022.2.2. This is the error that gets thrown when trying to deploy to the simulator:
error HE0004: Could not load the framework 'DVTITunesSoftwareServiceFoundation' (path: /Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/DVTITunesSoftwareServiceFoundation):
dlopen(/Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/DVTITunesSoftwareServiceFoundation, 0x0001): Library not loaded: '#rpath/ContentDelivery.framework/Versions/A/ContentDelivery'
Referenced from: '/Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/Versions/A/DVTITunesSoftwareServiceFoundation'
Reason: tried: '/usr/lib/swift/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/Library/Frameworks/Xamarin.iOS.framework/Versions/15.12.0.2/lib/mlaunch/mlaunch.app/Contents/MacOS/../Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/Versions/A/Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/usr/lib/swift/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/Library/Frameworks/Xamarin.iOS.framework/Versions/15.12.0.2/lib/mlaunch/mlaunch.app/Contents/MacOS/../Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/Versions/A/Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/System/Library/Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file)
I had the same problem.
Let me guess... You just upgraded to XCode14 and the corresponding Command Line Tools?
Downgrading XCode and Command Line Tools to 13.4.1 helped me.
What worked for me
Go To https://developer.apple.com/download/all/?q=command%20line%20tools
Download XCode and Command Line Tools for Xcode 13.4. Unpack Xcode (13.4.1) and rename it (for example Xcode 13) and place it parallel to Xcode (14) in the programfolder.
.
Then install the Command Line Tool.
Now in Xcode (still 14) > Preferences > Location > Command Line Tools, select version 13.4.1 instead of 14. You can see the Path for it is "Application/Xcode 13".
For safety restart tools, and it worked again...
Update: With the last update of Visual Studio, the downgrade was no longer necessary for me. Since then I can build the apps with XCode 14 and the corresponding command line tools without any problems. So I suggest upgrading Visual Studio to the latest version first.
Here is how I made it work:
Download the former version here (note: you need a developer account)
Double-click on the downloaded .xip file to install XCode 13.4.1
Rename the newly installed XCode application into Xcode.13.4.1.app and move it into your Applications folder
Open the usual XCode application and go to the preferences
In the locations tab you will be able to select XCode 13.4.1 for Command Line Tools
Redownload Visual Studio?
It turns out Microsoft released a brand new Visual Studio at some point.
We haven't been in our Xamarin project for a while and even though it said there were no updates, no Simulators were showing up.
Our Visual Studio said the version was 8.10.25 yet when I was reading the release notes, they referred to version 17.3.7.
Our team had to download Visual Studio again and then we saw the version updated to 17.3.7.
So check your version of Visual Studio and redownload the newest one. That's what fixed this issue for us.
Latest update fixed the issue for me.
I had the same issue, while searching for answer I found this thread,
writing this to confirm that I took the latest update on 9th nov(NET 7 SDK). Issue seems resolved with latest update.
There is a more elegant solution to this problem. You need to upgrade Xamarin.iOS manually. The releases are on GitHub 16.0.0.72 did the trick for me.
Why won't Android Studio create a class?
It doesn't even work for newly created projects
Update
OR why are all of these empty?
The reason is you may have installed the 64 bit version on a 32 bit machine. I had the same problem. If you have 32-bit OS, try to uninstall 64-bit version of Android Studio and install 32-bit version from this page: https://developer.android.com/studio/index.html#downloads
I too faced the same Issue. Go to your Android Studio -> Help -> Edit Custom VM options. Add the following line to the opened file.
-Djdk.util.zip.ensureTrailingSlash=false
Source : Fix suggested by Wojciech Fred
To me, the problem was due to incorrect upgrade to new version of Android Studio. Studio patching seemingly went ok, but at Event Log, I constantly got this error:
2:55 PM FileNotFoundException: Entry fileTemplates//code/Google Test Fixture SetUp Method.cc.ft not found in /home/vlada/android-studio-145.3200535/lib/idea.jar
I also got similar message in 'IDE Fatal Errors' window.
Downloading and installing the latest version of Studio solved the problem for me.
I am totally new to Apache Cordova tools with VS 2015. I just tried to create basic initial project, added nothing more and trying to build it, but it fails everytime.
For the specific error I get, I performed all the steps mentioned at:
Configuring Apache Cordova with VS2015.
I am not able to get rid of this error and run the most basic project.
Here is my sample code: https://1drv.ms/f/s!ApUTYQW5TdbIgzrPGeUkxWVmmy0Z
I ran into this problem and was able to solve it using the solution here: https://stackoverflow.com/a/31688018/4045156
The solution is for a slightly different problem, but in my case it did resolve it. :)
EDIT: here's the solution from that post:
Close all VS instances
cd %appdata%\"..\Local\Microsoft\Phone Tools"
rename CoreCon folder to something else
Launch VS again.
As mentioned in the official link - configure VS tools for Apache Cordova which you are following,
If you see unexpected errors when trying to build the Blank App template after installing Visual Studio Tools for Apache Cordova, you can try clearing your cache and reinstalling the Cordova CLI pre-processor, vs-tac, on your PC.Typically, this is only necessary if you try to build a Cordova app and see the error Cannot find module [modulename].
For other errors, you may have to look at workarounds link.
According to me, clearing cache should resolve the issue or this issue would have got introduced in latest version of Visual Studio once again.
I also suggest you to look at the following SO posts which should help you out in this issue.
VS dont work with TACO
Error with cordova using VS
Hope this helps. Cheers.
I have a Xamarin 2 solution that's been working fine - but it suddenly won't build using Xamarin Studio for Mac. (It builds fine using Visual Studio)
This is the build error:
/Source/trunk/c1/.nuget/NuGet.targets: Error: Command 'mono
--runtime=v4.0.30319 Source/trunk/c1/.nuget/NuGet.exe install "" -source "" -RequireConsent -solutionDir "/Source/trunk/c1/"' exited with code: 1. (c1.Models)
I'm using this Add-in to restore Nuget packages within Xamarin Studio for Mac. All of the Nuget packages are downloaded and restored.
https://github.com/mrward/monodevelop-nuget-addin
This article mentions a similar problem, but I've removed the space as it suggests and it hasn't made a difference. http://nuget.codeplex.com/workitem/3332
I would greatly appreciate any tips - thank you!
You hit just one of the typical NuGet/xbuild compatibility issues, including the one I reported a while ago,
http://nuget.codeplex.com/workitem/list/basic?field=CreationDate&direction=Descending&issuesToDisplay=All&keywords=xbuild&emailSubscribedItemsOnly=false
http://nuget.codeplex.com/workitem/4051
The workaround you find like using the latest NuGet.targets can help, but ultimately Microsoft guys have implemented a brand new restore approach (which has been deployed already to all Microsoft platforms), now it is time to wait for Xamarin to catch up.
(Updated: Now you should use
mono --runtime=v4.0.30319 .nuget/NuGet.exe update /self
mono --runtime=v4.0.30319 .nuget/NuGet.exe restore my.sln
to restore packages.
More information can be found at NuGet site)
I think I've solved this problem. I replaced the NuGet.targets file with the following:
https://raw.github.com/xamarin/Xamarin.Mobile/master/.nuget/NuGet.targets
That file seems like a more modern file that fixes some of the -RequireConsent and $(SolutionDir) spacing issues. I lost many hours on this - hope it helps someone else.
Visual Studio 2012 becomes corrupt when I tried to install WiX 3.8. This is what happens...
Following a successful WiX install I try to run VS2012 and get the splash screen followed by this error "Exception has been thrown by the target of an invocation". Clicking on ok simply places me on the desktop. The only solution is to re-install VS2012. I tried un-installing everything and starting over several times but no luck. I cannot find any information on this exact topic anywhere online including WiX forums. Does anyone have ideas on what I should try next?
Rudy
I just had the same problem after installing WiX 3.8. Basically even more problems as Explorer and other system application could not be started anymore.
The root cause was a change in the PATH environment variable which ended up to be more than 2048 chars and therefore the %windir% var was not accessible anymore.
Try to remove some unnecessary paths in PATH environment variable as described here:
https://superuser.com/questions/355594/windows-7s-path-and-environment-variables-are-corrupted
At least for me, it worked afterwards again.
Cheers and good luck