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.
Related
How do I download the content of a project in Visual Studio TFS? I clicked around and I did not find an easy or intuitive way to do it. It is an old project that I thought had been lost until I reinstalled the latest version of Visual Studio.
You can get the TFS project from Visual Studio. First, you have to connect the project via Team Explorer in Visual Studio then add a server and click 'select team project' and you're done. It is downloaded to your PC.
You can find a documentation here.
EDIT:
Also, if you want to download your code as a zip:
You can click on any ellipsis to find the menu which contains Download as Zip option.
If you merely want an archive of the contents of a folder, you can right-click on the folder in the tree view on the left hand side of the page (in this case, on $/gelsana) and select the option "Download as Zip".
This is suitable for archival purposes. You cannot check-in changes made using this option.
I have used the ajaxtoolkit with .NET 4 and Visual Studio 2010, and I was able to add a new tab to the toolbox and add the ajaxtoolkit controls to the toolbox. How do I do this in Visual Studio 2012?
I have added the ajaxtoolkit with NuGet, but I would like to see the controls in the toolbox, so I can drag the controls in. How is this done?
It's located in the packages folder created by Visual Studio 2012 after you use NuGet Package Manager to download it.
Create a tab in Visual Studio (you can name it Ajax Toolkit).
Right click on it and select: Choose Items..
Click Browse and navigate to the packages folder that Visual Studio 2012 creates with your source. Something like this: ..\packages\AjaxControlToolkit.7.0123\lib\40\AjaxControlToolkit.dll
Select AjaxControlToolKit.
I just installed it in Visual Studio 2013. Here's a summary of the process:
Click on solution and Manage Nuget Packages
Filter for AJAX and select the Ajax Control Toolkit
After NuGet installs this, it won't be in the toolbox!
Create a new toolbox group for AJAX CONTROL TOOLKIT
Add Items
Browse
Navigate to the toolkit URL. Project is Webapplication1 in the c:\temp folder so the toolkit was in: C:\temp\WebApplication1\packages\AjaxControlToolkit.7.1213\lib\45 (because I am using framework 4.5)
Click OK and the toolbox should be populated.
Slight sort cut for finding the dll folder, for example step 7 in the instruction set given by user3546149.
(Good job, I would up vote your answer but no reputation).
AjaxControlTookkit should show under References for the project. Right click it and select Properties. The Path property is the path to the AjaxControlToolkit.dll. Copy that Path property.Then for step 7 paste the Path property directly in the search box. Saves eye strain and clickity click oops syndrome.
(Works for VS 2013 also, maybe others).
The current version of the AJAX Control Toolkit does everything to install itself into the VS toolbox. First exit out of VS (it will tell you to exit if you don't) then click the Download button in AJAX Control Toolkit.
To install Ajax Control Toolkit, run the following command in the Package Manager Console
PM> Install-Package AjaxControlToolkit
this is install the Ajaxtoolkit in your current project..
I'm evaluating single-page application frameworks, and I've just downloaded and installed the various templates from ScottGu's page.
However, when I attempt to create a "New ASP.NET MVC 4 Project", as detailed on the Durandal page, here, I see only the default, Visual Studio-installed templates.
I've checked in C:\Users\me\AppData\Local\Microsoft\VisualStudio\11.0\Extensions, and I can see a directory (called eislr0na.wgk) containing the Durandal bits. I've deleted the .cache files in the Extensions folder and restarted Visual Studio.
But, I can't see any of the single-page templates in the dialog box.
What's the problem?
In order to use the new templates you must have the Visual Studio 2012.2 update installed.
I have a Windows Azure web site. I started this web site as a New -> Compute -> Web Site -> From Gallery. Once here, I chose the Orchard CMS. I have the site successfully running in Windows Azure. My challenge is, I want to do some customizations to it.
How do I get this code into my local Visual Studio 2012 instance so that I can:
Make customizations to the site with Visual Studio 2012.
Check it into source control so other on my team can work on it
I saw the following post: http://www.davidhayden.me/blog/installing-orchard-cms-as-an-azure-web-site. However, this only talks about opening the site in WebMatrix. I want to skip WebMatrix and go straight to Visual Studio if possible.
Download WebMatrix and click the Visual Studio button in the ribbon. It must create a solution file for you to then access your website via Visual Studio. I don't have an Azure website at the moment to try it with.
You may need to tweak the registry to get the VS 2012 to open properly:
Type regedit and select the HKEY_CLASSES_ROOT.
Locate VisualStudio.DTE and change the CurVer to
VisualStudio.DTE.11.0
Finally change the CLSID to {059618E6-4639-4D1A-A248-1384E368D5C3}
You do not need to use WebMatrix at all; another option is to just download the files from FTP and then create a VS solution and add the files you downloaded.
From Visual Studio you can easily deploy the solution to TFS and to your azure website.
As a side note, as of today (January 28th, 2014) the registry edit proposed by SilverNinja is no longer needed, I was able to open VS 2013 Professional from Webmatrix without editing the registry.
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