I am trying to create a Visual C++ Windows Phone Runtime Project in Visual Studio 2012. When I do, I get this error:
"Unable to read the project file "RT1.vcxproj(150,3): The imported project C:\Program Files(x86)\MSBuild\Microsoft\WindowsPhone\v7.0\Microsoft.Cpp.Windows Phone.7.0.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
First a little clarification - does it create the project, then look in that path for the proper tool to read and open it? If not why is it trying to import anything?
The path it is complaining about doesn't exist, but replace the 7's with 8's and everything is there. Is there a way to change this import declaration to reflect the correct path? Is it trying to create a windows phone runtime component for Windows phone 7 and I just need to specify somewhere it should be creating it for windows phone 8?
EDIT: To add, any visual c++ windows phone project I try to create comes back with basically the same error message.
Related
I am trying to build a Xamarin.iOS(runtime v4.0.30319) project but keep getting the following error
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Threading.Tasks.Extensions.dll myApp.iOS C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets 795
When I look in C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades I can see System.Threading.Tasks.Extensions.dll exists.
and when I compare Xamarin.iOS.Common.targets on another machine that works, there are no differences
after extensive searching I have not been able find a solution. I have also tried:
manually adding the .dll to the iOS project
reinstalling the .netstandard framework which is used
deleting the solution and pulling from source control (I'm the only one affected by this issue)
compared my set up to other working set ups
Extra information (possibly irrelevant): This is a cross platform solution and when built in the android environment, everything works as expected.
This issue was caused by a versioning mismatch.
I was running developing in on my windows machine and deploying to an iOS device via a mac on my local network.
The iOS version held on the mac differed from the version in my xamarin iOS project (the mac had been updated by another dev).
The resolution for me was to make sure both versions were the same
I too had a similar problem but there was no System.Threading.Tasks.Extensions.dll on the Mac in the /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades folder. However on the Windows PC, this file exists in the C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades folder.
The solution for me was to copy the System.Threading.Tasks.Extensions.dll file from the Windows PC to the Mac.
I ran into this issue as well. My solution was to launch Visual Studio on the Mac (in my case a Mac Mini) and grab all updates for Visual Studio. One of the updates specifically mentioned the System.Threading.Tasks.Extensions.dll issue that I had been experiencing. After the updates I was able to build the project.
Release note of Visual Studio 15.9.4 :
"Error MT2002: Failed to resolve 'System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder' reference from 'System.Threading.Tasks.Extensions...'" when building a Xamarin.iOS project."
https://learn.microsoft.com/fr-fr/visualstudio/releasenotes/vs2017-relnotes#-visual-studio-2017-version-1594visual-studio-2017-version-1594-
Trying to add resx-files to my cross platform project. I was starting to look at the links for the toolkit but that seems to work only for VS for windows and I'm running Visual Studio of Mac on a... ...well, mac. Thought I wouldn't let that stop me and proceeded adding the resx-file manually and started with my Android project.
I've created a separate PCL project where I'd add my resource files. Creating the first AppResources.resx works fine and adding terms to that file updates the designer file accordingly, so far so good. However, when I try to add a second language and name the file according to examples I've seen online such as AppResources.it.resx I get an exception in the UI stating that the "File ..../Resources/AppResources.resx already exists.".
I'm hoping to use the same approach for my ios project so the solution should not limit that application.
Any help is appreciated!
I'am developing a android application in Visual Studio and the Xamarin c# monodroid development tools.
I have some external JAR files that i embed into my projects. Most of the project work fine but when i try to embed the JAR from Yocto (yocto android lib) and place the YoctoAPI.jar into a new android project and link it as "EmbeddedJar" the compiler fails with the exception "generator.exe" exited with code -1073741819.
This is a NULL pointer exception in the generator and searching the net i found some people who have the same problem and tells me that obfuscated code is not supported (that i understand). But how can i find the obfuscated code in the JAR file? Or is there a other problem that i'am not seeing.
If i need to post more project settings or envirioment/system parameters, please let me know
Such issues with Visual Studio can be fixed by repairing it.
You need to repair Visual Studio. Go to Control Panel -> Programs. Then select your version of Visual Studio you are using and press "Change"(or right click it and press "Change"). When the setup appears, click "Repair".
I got same error while create binding project, in my case the problem is in resource file, you need to add the jar file and resource file like,
bin - contains all jar files,
res - contains all resource files,
and add the compressed 'bin' folder in your project and build works fine.
I'm trying to move a solution I have over to Visual Studio 2012 and one of the project types is .vdproj.
According to this link this project type is not supported in Visual Studio 2012:
MSDN says they recommend that you use InstallShield Limited Edition for Visual Studio.
The problem is, when I open up my solution in VS2012 and try to add a new "Enable InstallShield Limited Edition" project to my solution, I get an error message saying:
Creating project 'test'...project creation failed.
Why might I not be able to add a project of this type to my solution?
If I make a new empty solution I can't make an InstallShield project it in either.
I'm going to try to download InstallShield limited edition and see if it does anything.
I tried out that InstallShield download, and it added two extra project types, but I'm unable to create either of them. I'm able to add normal website projects to my solutions just fine, but not deployment projects.
The installer was named the same, but this one prompted me to re-start. After re-starting I was able to add an InstallShield project, but it gets created in its own solution. So, it looks like now I have to figure out how to use it, and I'll be good to go.
It's looking like the limited edition doesn't have support to install Windows services.
This will probably be long and boring because there's lots of steps, but I'd like to write up how to move from a Windows service installer .vdproj to the new InstallShield LE that's available in Visual Studio 2012.
Step 1: Create a merge module (.msm)
Follow the steps of this guide.
Notes:
You will need to install WiX 3.6 and isWiX
The latest release of IsWiX doesn't enable the Tools menu item in Visual Studio 2012. Edit the file: C:\ProgramData\Microsoft\MSEnvShared\AddIns\IsWiXAddin.Addin (XML) and clone the HostApplication element and update 10.0 to 11.0.
In step #8 of the guide, it references a code tab. This has been moved to the XML Editor item in the bottom of the left menu
I left the MergeRedirectFolder empty for my installation
Here is my isWix files view:
After you're done with the guide you should have an empty .wxs file that looks something like this:
Using the Component XML element pulled from here you should end up with a .wxs file that looks like this:
Hit build and you should now have a .msm file.
Step 2: Adding merge module to InstallShield
Go though the wizard to setup the basic install information like company and version information.
Find the redistributables view in ISLE. Right click the list and select browse for module. After your module is found and added, right click the modules and select properties. Set the destination folder drop down to INSTALLDIR. I had to set mine to the lowest level folder I created for my install path, so you might have to experiment a bit.
Build Project, and test on virtual machine
Redistributables Screen
If you're getting errors about the path being too long you might need to change the release location to something close to the root.
Here's a list of all the build errors for reference.
Now you should be able to run your installer and have it install/start a Windows service. A lot more work than .MSI files, we got it to generate in Visual Studio 2010, but overall it was not too bad.
While there is no easy or truly supported solution for Visual Studio 2012, Visual Studio 2013 users can get an extension from Microsoft in the Visual Studio Gallery.
I found this post which says you must download InstallShield first. It's a very confusing way to work. I suggest to vote up the post on the connect site and give them comments letting know how poor that is. They could at least give a more descriptive error http://connect.microsoft.com/VisualStudio/feedback/details/732196/project-creation-failed-for-installshield-limited-edition#tabs
I just installed Visual Studio 2012 RTM. During the process of trying to create a new web project, I receive the following error:
"Web application projects are currently configured to use IIS Express. To switch back to using the Visual Studio Development server, change the development server option under the Projects and Solutions/Web Projects category of the Tools/Options menu. Configuring IIS Express failed with the following error: Filname: \?\UNC\DEV-FILES\home\mike\MyDocuments\IISExpress\config\applicationHost.config. Line number:1. Error: Configuration file is not well formed XML"
...and project creation subsequently fails.
I already know that I can resolve the this by using the VS dev server, but I should also be able to use IIS when necessary.
When I view the applicationHost file in question, its size is 0kb. It looks like Visual Studio 2012 wiped the contents of the file completely out. I've taken clean backups of the applicationHost file from c:/inetpub/history/ and restored them in the IISExpress folder. Again, when I attempt to create a new project through VS 2012, the file goes from 85KB back down to 0KB.
So I guess I'm trying to figure out why VS 2012 is writing to the applicationHost.config file, what it's trying to write, and how I can resolve the issue.
Thanks,
Mike
I had this problem and solved it by removing encryption on the IISExpress folder. You may or may not need to remove encryption on your My Documents\Visual Studio 2012 folder as well.