(Visual Studio 2012)
Is there any way to create a solution reference by simple dragging the solution item (project) inside the other's project references folder? Like this?
http://i.snag.gy/p692V.jpg
Some kind of plugin or add in or something?
I do not know of any Visual Studio add-in or extension that does this and I did not see when when searched. I believe that it would be useful if the feature adds the dropped reference quickly with no dialogs or prompts. This would be nice if R# had this feature. Maybe suggesting this feature to M$ (for the next VS) or JetBrains would be a good idea. Also, the reference Manager in VS 2012 is much better, faster and lower-friction than in previous versions, but I can see that project references could be added much faster if this feature existed. I like the idea. You could also build the extension yourself. :-)
Related
I am using VS 2013 (Express Version) and I want to create a WPF user Control Library project. But I am not able to find the template in my installed templates list. If I use Winforms, I am able to build a DLL out of my Winforms Application Project just by changing the Output type as "Class Library". But it is not happening in WPF and it is throwing errors if I do so. Is this the correct method of doing it or am I going wrong?
And in the Create New Project dialogue window, I am not able to find the .NET Framework selector drop down. After creating the project only I am able to change the .NET framework version by going inside the properties of the project.
Kindly help me to get out of this. Thanks in advance.
I have been working on this exact same problem for hours this morning. Here is what I think I have learned:
With Visual Studio Express 2013, it is by design that the WPF User Control Library template is not available for making a New Project. This is because it is the free Express version.
With the Express version, you don't have a "devenv.exe" for trying the "devenv /installvstemplates" to "fix" things. It is, instead, called (just a moment while I look this up again...) "WDExpress.exe" and will be located (if you have default location) in the "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE" directory. BUT - this won't help you. It won't fix your problem, because, as I mentioned, your Express installation is designed to not have that template available for New Project, so your "fix" won't put it there. I know this because this is what I tried myself. (Also, note that the instructions for doing this tell you to uninstall any extensions you've installed before doing it. And then, of course, if you still want them you have to reinstall them. Like I still have to do, incidentally.) I'm letting you know all of this so you don't go through the headache I'm having.
Note that I have not done this yet, so this is somewhat hypothetical on my part, but is based on my research on the Internet so far - Your solution is to create a WPF User Control Library manually [but now see UPDATE below]. (No, I don't know how to do this yet. I got into this in the first place, because I'm a WPF novice - just started working with it a few days ago - and late last night I got this great idea to add a "spinner" progress indicator to my "WPF play/learning project" I'm working on, and found a couple of relatively easy-to-work-with samples on the Internet - both of them are a WPF User Control Library - and at first I wanted to use the copy-and-paste to put the code in. But then I discovered... well, our mutual problem, because I'm using Visual Studio Express 2013. No such template under New Project. And literally at the tail end of my about-to-throw-in-the-towel, I'm googling and your post, Dhivakar, is already showing up with the right Google search.) So I haven't finished my research yet, but my next step is to learn exactly how to create a WPF User Control Library manually (the code and various project property settings), and then I can just save a WPF User Control Library skeleton for future use and document the details.
UPDATE: This guy totally has the solution for Express versions. I have followed his steps and it works great. The only additional piece of information I would add is that in my version (VSE2013), after you've created your WPF User Control Library template, when you open Visual Studio again and use File -> New Project, my selection in the tree (for a Windows app) came up under Templates -> Visual C# -> Windows (which is what I've been using). I did not see my template showing up there, after I created it, and I thought, "Great! Another piece of advice that doesn't work." But then I clicked up one on the "Visual C#" parent - and there was the template!
Here you go:
How to add a WPF control library template to Visual C# Express 2008
https://dotupdate.wordpress.com/2007/12/05/how-to-add-a-wpf-control-library-template-to-visual-c-express-2008/
Yes, it works this way for VSE2013 too.
UPDATE 2: I'm not absolutely positive about this, but I think he missed one little piece. In his step #4 he says to delete Window1.xaml and App.xaml. Maybe this didn't apply with VSE 2008, but in VSE 2013 there is also the App.config file which I believe is extraneous for our purpose. So you can delete App.config as well. As I said, I'm not absolutely certain about this yet, but I noticed that file in the project when I added a WPF User Control Library project to my solution, and I deleted it, and the solution compiled okay.
Try running devenv with the /installvstemplates switch, from https://msdn.microsoft.com/en-us/library/vstudio/ms247116(v=vs.100).aspx
If this doesn't work, browse to C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ItemTemplatesCache\CSharp\WPF\1033\WPFUserControl (this could change dependent upon your installation directory), open the .vstemplate file in a text editor, and make sure the setting is set to true, then try running devenv with the switch again.
Hope it helps.
I am using MS VS 2010.
I can not for the life of me find any instructions on how to install something like this to use on Microsoft Visual Studio 2010.
I was wondering how to install and use this control in this version of MS VS with C#.
http://www.denisbauer.com/ASPNETControls/DynamicControlsPlaceholder.aspx
I am making a very dynamic page with a lot of post backs and I think this has great potential!
I need to know how to get this one working bolded below:
Download (V2.2):
The sourcode is available in C# as a VS.NET project (Wont convert for
me)
A ready-to-use assembly (including help file). A demo shows the usage of this control. Sourcecode for this Demo (C#) or Sourcode for
the Demo (VB)
Any help would be greatly appreciated I can't find much information on this on the web. Perhaps I am using the wrong keywords... I am stuck on this at work for the time being and no-one here can help. Its become one of those aggravating programming moments were the fun is wearing off!
I saw one other post on here "Install Custom Control in VS Toolbox" But he too has no luck and I wasn't really looking to install it with a program. I swear I did this long ago with 2008 in college just through a process with MS VS.
Thanks
You need to store the assembly somewhere (we usually store them in an assemblies folder relative to the project), then add a reference to that assembly.
If the assembly supports being added to the toolbox, you can drag the assembly from windows explorer and drop it on the toolbox and it will automatically add all of the appropriate designable items to the toolbox. It is best, if you do this, to create a new tab to hold these items (right-click in the toolbox and select Add Tab).
If the assembly does support addition to the toolbox, your next step is to drag the item from the toolbox onto the page or control and visual studio should take care of wiring it up.
Otherwise, you will need to follow the instructions on the website or copy details from the sample projects to configure the control in your page.
I am trying to make a C# game. I want to include XNA libraries there (e.g. Microsoft.XNA.Framework.Graphics). But, if I do so, I get an error :
The type or namespace XNA doesnot exist in the namespace Microsoft.
Can anyone please help ?
First of all, check you are using the correct case, the namespace and assembly names are Xna not XNA. If that doesn't work:
You should follow the instructions here. These describe how to install (as well as some flavour of Visual Studio 2010) XNA Game Studio and to create a project using the template. Using the template project is much easier than adding the references manually.
To add a reference to the XNA assemblies, you need to right click your project in Solution Explorer in Visual Studio and select "Add Reference".
If you do not see the DLLs you are looking for, you may need to right click your project, select properties, and then ensure that the target framework is one of the flavours of the .NET 4.0 framework (for XNA 4.0).
First you should right click on the "References" folder shown (usually) at the top of the project you are working in. From here you can select add references and manually browse to the location of the XNA .DLLs.
First, you need to add a reference to the XNA binary files. Second, I recommend you start off with the Built-In Visual Studio XNA Game Template, and work from there.
To add the references manually, you'll (probably need XNA Game Studio installed) and then add references to Microsoft.Xna.Framework.dll and whatever else you need.
Personally, I still think you should start with the built-in visual studio template for a Game. Once you get a feel for it, move on to advanced concepts like embeding your game into a standard WinForm app or whatever.
In the solution explorer. Go to reference, add reference and then add th Microsoft.Xna.Framework.Xact reference 4.0 It is somewhere near the bottom if you leave it unsorted. Then you can access the Audio Engine class.
I had the same problem and then found it at the 3rd time of trying. Worked fine for me. Hope this helps.
Instead of hassling around in the references list in Visual Studio, just download the DLL from HERE, or the direct link:
https://www.dllme.com/dll/files/microsoft_xna_framework_dll.html
so I have an application that I have created in Visual Studio 2010 and I want to know how I can package it so a user can install it on their machine. I'm sure I will have to do some scripting as well as call cmd prompts. Basically I want to get it to the point where there is an installer for the application that my group has built.
Any suggestions or tutorials you recommend?? Its for a school project and it would really be helpful if someone could help me get this off the ground. Its the last thing my group needs to do.
Thanks!
Joe Ristaino
Use ClickOnce
Use the MSI installer setup project in Visual studio. It's very simple.
http://www.c-sharpcorner.com/UploadFile/vishnuprasad2005/SetupProjects12022005022406AM/SetupProjects.aspx
I wouldn't use click once...
Ok here's a newer article
http://www.dreamincode.net/forums/topic/58021-deploying-a-c%23-application-visual-studio-setup-project/
Visual Studio has it's own installer projects, you could check those out. I personally use them for any projects I make at my company. If you use the wizard, you'll have it done in no time.
In your solution,
right click your solution name in the Solution Explorer.
Add -> New Project.
For the type, goto Other Project Types -> Setup And Deployment -> Visual Studio Installer
Choose the setup wizard, it's pretty easy. Primary output means what's is installed to the program folder. Follow the wizard and most of the work will be done. There will only be optional tweaking left to do.
I recommend WiX. It's got quite a bit of a learning curve, but it's totally powerful.
It's expected to be included in the next version of Visual Studio (it didn't quite make it into VS2010).
In Visual Studio I have a lot of classes and UserControls that I have to move into another namespace. In eclipse I can do it with updating all the references automatically. In Visual Studio I couldn't find a similar function. How is this possbile in Visual Studio?
If you mean moving between assemblies:
For existing built code you should add:
[assembly:TypeForwardedTo(typeof(SomeNamespace.TheControl))]
to the original assembly (that no longer contains TheControl). Then the CLR will sort everything out for you for existing built code without having to update the references.
However, for building code you will still need to update the references; I don't think vanilla VS has that built in.
There's no such functionality provided in Visual Studio. Resharper has such feature.
Rename is supported in VS for reference update, but not file or class movements
I reccomend Resharper. It's really powerful refactoring tool fos VS. VS becomes even possible to use after installing it;) And it has tool for moving classes, methods, pulling up, pushing down, renaming and many more.