I use Visual Studio 2012 with .NET 4.0 (C#).
Now, I have added a Image in the Xaml:
<Image Source="/PPPos.Common.Images;component/Application/Pos.jpg" Stretch="Fill" />
The Image Pos.jpg is included in the referenced Assembly PPPos.Common.Images.DLL as Resource.
Visual Studio 2012 gives me now the fallowing Exception in the ErrorList:
Error 2 Could not find a part of the path
'C:\PPPos.Common.Images;component\Application\Pos.jpg'.
But I can compile the Source without Problem and the Image will be shown when I run the Application.
This is also new with Visual Studio 2012 - there was no errormessage in the ErrorList with Visual Studio 2010.
Has someone an idea, what there could be wrong?
Works for me if you prefix the Source value with the "pack://application:,,,", in VS2012 and VS2013.
But I have reported this issue as a bug to the Visual Studio Team, because it is a new bad feature compare to VS2010, where you don't have to add this prefix. For behind compatibility the Visual Studio Team should fix it.
after long searching I found the solution
<Image Source="pack://application:,,,/PPPos.Common.Images;component/Application/Pos.jpg" Stretch="Fill" />
however I still do not know why this is the case in VS2013.
Any explanation will be appreciated.
Related
I'm trying to make Visual studio 2010 project work on Visual studio 2015(without upgrading it).
But the problem is it does not open proper property page.
It works very well in Visual studio 2010 IDE. Or if it is upgraded for Visual studio 2015 toolset(v140).
If I change the 'Platform Toolset' option to Visual studio 2010(v100), it does not work again.
Does anybody know what the problem is?
Thank you.
I faced a similar issue. See here:
Missing Properties when opening VS2010 C++ projects with VS2015
In my case, it was related to language settings:
VS2010 german version
VS2015 english version
-> project properties where not there
Switching the language of VS2015 to german solved it for me.
I am using Visual Studio 2013 Ultimate with Windows 7, and a C# / WinForms project. I have a problem that I cannot add any DLLs to the toolbox. I have already tried searching on Google for the answer, but none of the solutions work: rebuilding the project and re-installing Visual Studio both didn't work.
Even if I create a new project, I cannot drag the DLL to the toolbox or nuGet or use "Choose Item" from the toolbox. I want to use materialSkin, metroframework, and others like that.
Just in case it helps: I have installed Visual C# 2008 and Visual Studio 2010 previously; could that cause any problems with Visual Studio 2013?
Here is the error I see:
Can anyone help please?
I have a project from VS Studio 2010 that I want to work with in VS 2015. When I start this Project with VS 2015 I receive an error saying something like "compatibility-Error (Version)".
How can I successfully convert a Visual Studio 2010 project to use with Visual Studio 2015?
Without you going into any more detail about the actual error. (error numbers / screenshot) it will be very hard for any of us to give a real answer. Therefore I am going to suggest you take a look at Troubleshooting Unsuccessful Project Upgrades.
Something else to check out might be the Porting, Migrating, and Upgrading Visual Studio Projects guide
One of the key things mentioned in the 2nd link I provided is:
The following list describes support in Visual Studio 2015 and Visual Studio 2013 for projects that were created in Visual Studio 2012 or Visual Studio 2010 SP
Therefore I'd recommend upgrading the 2010 version to SP1 first. (if this is still installed that is)
One further thing to note is that if you keep the old version of Visual studio installed you can import a project which is made with an older version and skip the update. Visual studio 2015 will then use parts of the older version itself to open the project.
For details you can read How to: Upgrade Visual C++ Projects to Visual Studio 2015 page and the equally useful Installing Visual Studio Versions Side-by-Side page.
It appears that there are issues when moving from VS 2010.Net to VS 2015.Net and may require that you build the project from scratch and copy the code over. VS 2015 requires a Namespace. There are a number of designer issues on control that require the style page be used since various attributes have been removed. Something still, however, do work but you need to review the HTML, specifically things like Font and alignment. While it's a pain it isn't a big deal since it requires mostly cut and paste.
If you are having issues converting web projects the projects may have originally been created as a "web site" rather than a "web Project" . Try opening the application as a web site and see what happens. At least that may help get you to the point you can actually get to the code to convert it in VS 2015. Hope this helps.
Try to Right-click the solution, then select "Re-target solution".
No matter what I do, with the Windows forms C#, I'm constantly getting this error
http://prntscr.com/7owfk2
When trying to add any text boxes. That's on a clean project. I don't know what to do. I cannot use VS2013 because of that error.
Any help? Thanks
I fixed this error by scrapping Visual Studio 2013 and installed Visual Studio 2015 RC. It's not really a fix, but it resolved my issue.
Ever since I updated my projects for VS 11 I can't get my #Model intellisense to work in either version of Visual Studio (2010 or 11). I've tried reverting the .csproj file to remove the VS 11 references, but to no avail. Other MVC 3 Razor project are working just fine. Anyone experience this?
Not working in both versions of Visual Studio smells like the install is possibly corrupted a bit. My first step would be to try and repair the Visual Studio 2010 install and see if the Intellisense behavior comes back for 2010 only.
Control Panel
Add / Remove Programs
Visual Studio 2010
Select Repair in the menu
If this works then you could be happy with the returned intellisense or try the same steps for Visual Studio 11 and hope it fixes it for both. But if the installation of 2011 is to blame then very likely it would just immediately rebreak both of them
I found this article that addressed my issue.
EDIT:
It seems that some combination of installing VS 11 and some tool updates caused this issue. I got luck and managed to get the following error message:
The type System.Web.Mvc.ModelClientValidationRule exists in both c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.O\Assemblies\System.Web.WebPages.dll and c:\Program
Files (6)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll
After doing some digging I wound up uninstalling "Microsoft ASP.NET Web Pages 2 - Visual Studio 2010 Tools", which resulted in everything working. Granted it may have been a better idea to uninstall "Microsoft ASP.NET Web Pages - Visual Studio 2010 Tools" instead, but this is working at the moment.
I found a complete lack of information on the Internet about this type of issue, so I'm putting it here for posterity.