In Visual Studio versions prior to 2012 you could open the Data Source tool window, click the add data source button select object and navigate the project namespace hierarchy to a class (business object). Visual Studio 2012, out of the box, doesn't allow you to simply select a class anymore. My question is how do I add a data source based on a business object to my project in Visual Studio 2012 or how do I revert to the old functionality?
I've fixed the issue by right clicking on the solution and choosing clean and rebuilding everything. I'm now able to create a data source as described in my question.
Related
After installing Visual Studio 2015, when I go to File -> New Project, I cannot find any project templates related to Visual C++. How can I get them?
You can do that by modifying the Visual Studio, and you can do that using these steps:
Go to Control panel
In the Add or Remove Programs dialog box, select the product you want to repair and then click Change/Remove
In the Setup wizard, click Next
Click Repair
Then Modify - now you can select C++ to add it.
Visual Studio 2015 has made a number of setup components optional. This means that the default installation set is very small and the user can select any additional components he wants to install. Visual C++ is one of the optional install components.
Most of the optional install components can also be acquired through regular product work-flows. For example, when you go to File -> New Project dialog and are not able to find any Visual C++ templates, you will at least see an item that allows you to acquire Visual C++ tools. It does this by launching the setup experience with the "Visual C++" tools pre-selected.
For more information, please see this link:
http://blogs.msdn.com/b/vcblog/archive/2015/07/24/setup-changes-in-visual-studio-2015-affecting-c-developers.aspx
You can add the missing templates by:
Go to File(in visual studio).
Select New project.
Under Templates Select Open Visual Studio Installer.
Now you can add any component.
Works on Visual Studio 2017.
Don't know about others.
If you have an MSVS update 3 installed then you may have face with one of the problem of this update. See more here Visual Studio 2015 Update 3 Known Issues. Here is a quote from this document
In some cases, applying Update 3 can cause the optional feature selections for Visual C++ (e.g. Common Tools for Visual C++ 2015) to become deselected and uninstalled.
I have created a dtsx file to use as an SSIS package template. I want to be able to use the file as a template by clicking on an open Project in Solution Explorer and selecting Add -> New Item
My questions are:
How do I save this as a template file? Its currently a .dtsx file.
Where do I have to place the file so its in my list of options in the Add New Items dialog? I have seen many conflicting paths and none specifically for SQL Server Data Tools for Visual Studio 2012.
I have searched for instructions on how to do this but have now found clear instructions for use with SQL Server Data Tools for Visual Studio 2012. Posts I have found are conflicting and don't clearly explain how convert the dtsx file into a template file. The link here is an example of conflicting info; its posted for vs 2010 and examples are for vs 2005. I have also tried to use the Export Template Wizard but this feature seems to have gone away in SSDT for VS2012.
You need to copy the dtsx package to following location and restart the SSDT for VS2012. Note that the VS installation location may be different in your machine.
First select the package that you want to export as a template and then Select File->Save As..
and save it to
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\ProjectItems\DataTransformationProject\DataTransformationItems
E.g.
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\ProjectItems\DataTransformationProject\DataTransformationItems\MyTemplatePackage.dtsx
Quote: I have also tried to use the Export Template Wizard but this feature seems to have gone away in SSDT for VS2012
SSDT for VS2012 does not have an export template wizard. It's only avaible for VS2012.
I am developing WinForms Application using vb.net in visual studio 2012. And I have downloaded SAP crystal report for Visual Studio 2012 to take the reports from my application.
So i downloaded the following two files.
1) (SAP Crystal Reports, developer version for Microsoft Visual Studio SP5 - MSI 32bit) CRRuntime_32bit_13_0_5.msi from http://scn.sap.com/docs/DOC-35074
2) Crystal report Installer file CRforVS_13_0_5.exe
After Installing the first file I got references in visual studio 2012 as :
I dont Know which reference should be included to create crystal reports in VS.
And I installed Second file also. It Installed Successfully and i found the crystalreportviewer in Reporting tab of toolbox. I Selected that tool and i choose create new report. That time I am getting the error like :
Error Invoking 'Create a new Crystal report...' Details: Can't resolve strongly report class at design time.
What does this mean?
what is the solution to this ? Sorry I am new to crystal reports. Thanku....
Uninstall the CRRuntime_32bit_13_0_5.msi and CRforVS_13_0_5.exe packages, then install only CRforVS_13_0_5.exe.
Inside the exe there are the designer for Visual Studio and the runtimes files (the same contained in CRRuntime_32bit_13_0_5.msi)
There is no need to include libraries reference when generating a new report, but if you use the CrystalReportViewer you'll have to include:
CrystalDecisions.CrystalReports.Engine
CrystalDecisions.ReportSource
CrystalDecisions.Shared
CrystalDecisions.Windows.Forms
To create a new Crystal Report, in your VS solution explorer, right-click on your solution and choose "Add". In the resulting window, click on "Reporting" in the Installed Templates" and choose "Crystal Report". Give the report a name and click "Add". The new report will be added to your solution and the report wizard will start.
I'm trying to create a site using Orchard CMS. To get started, I downloaded / installed Orchard from WebMatrix. I successfully setup a site using the "Default" recipe. I then click the "Files" tab within the accordian along the left side. From here, I can see all of the files in my project. To begin editing within Visual Studio 2012, I click the "Visual Studio" button in the ribbon.
Once inside Visual Studio, I right-click on the solution and select "Rebuild Solution". The solution begins building, but then I receive an error. The error says:
Error 1 Object reference not set to an instance of an object. C:\Users\username\Documents\My Web Sites\Orchard CMS2\Modules\Contrib.Cache\Contrib.Cache.csproj 1
Please note that at this point, I have not even edited a single file. Rather, I created a basic site and attempted to open it in Visual Studio. What am I doing wrong?
Only the full source code will build in Visual Studio. You can edit the compiled web site version that you downloaded in Visual Studio, but you won't be able to build it. It actually doesn't need building as it has dynamic compilation built-in.
If you want to build the framework and core, get the full source code version.
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