I have a solution with a class library.
And then I have another solution with a web application which uses the dll above.
Everytime i make some changes on the class library I have to go to web application, remove the class library reference and add it again.
Is it possible to get this done automatically?
Related
Visual Studio 2019 CE with all updates as of today.
I create a Blank Solution.
Add Empty web project to the blank solution.
Add a class library.
Reference the library in my web project.
I build the Solution and can tell the library is working as intended.
I make a small change to the class library and build the Class Library only. The change i made doesnt reflect the output im expecting. If i rebuild the entire solution then the change i made does take affect.
Normally i can just build the single library and that does the trick. I cant work out why the entire solution needs to be built in order for the changes to come across to the web project? I even deleted the CL and added a new one but the same occurs - am i missing a setting somewhere?
I have seen similar questions, but the solutions seem to be deprecated or not compatible with VS Studio 2019.
Basically, I am building a client and a server application. I am building each one in a separate solution.
In the client solution, I added a Class Library project, which includes some classes I'll need to use in the server solution.
So, I right clicked on References in my solution explorer, and tried to find the solution. I browsed to the supposed location of the DLL in the first solution, but the problem is that there doesn't seem to be any .DLL file despite the project being a "Class Library (dll)". The only file is ClassName.csproj and I can't add that one. I also can't manually add the .cs files since it says its not a dll.
I'm creating a Silverlight project in VS 2012.
I have a simple data source provided by a .cs class and I would like to create a Domain Service Class and add it to the project.
Sadly, there is no such entry when I try to add an element to the project.
I'm sure the entry was there is VS 2010, why did it disappear in VS 2012?
How can I create a Domain Service Class in VS 2012?
You have added an EDMX already? I believe this is because of the change from ObjectContext to dbContext, and there are now a few extra steps to go through if you want to do things the older way ...
http://thedatafarm.com/data-access/vs2012-edmx-defaults-now-align-with-ef-team-guidance-re-dbcontext-usage/#comment-3891
...
After adding your model (EDMX) and installing the nuGet for WCFRIAServices, you will need to follow the steps given to remove the .tt files, rebuild the project, and then you should be able to add your Domain Service as before.
I cant find Windows Forms Control Library in my projecttemplates or in the "online"-option? Is it renamed or simply not included in Express version?
Edit:
Maybe Class library is what Im searching for? I want to create a user control for winforms, but that class library dont recognize winforms components and I cant use
using System.Windows.Forms
Can I do a work around in class library? Or do I need the full version of VS?
Class Library actually is what you need but it is better in your case to chose Winforms Program because that way all references are set up.
When you have created it change it's project type to class library in the properties tab.
Note: The using clauses just make it simpler to reference the classes in the assemblies they refer to. But to get access to these they first must be added to your project's references. Look at the project expolorer - references.
The Windows Forms Template has all necessary assemblies already there while the Class Library Template doesn't and only has the bare minimum you need to write non-visual classes.
You can always add more references as needed with a right-click on the project explorer. Then you can navigate to the assemblies you need, like in your case System.Windows.Forms
And no, you don't need the full version for most things.
From MSDN, you should be a able to find this option in Extensibility -> Installed templates.
In the New Project dialog box, under Installed Templates, expand the
node for your preferred programming language and then select
Extensibility. In the list of project types, select Windows Forms
Toolbox Control.
Can someone tell me how to make it so I have the ability to add WebUserControls (.asxc) to a Class Library project in Visual Studio 2013? I have search everywhere but only found how to do it in old versions.
As far as I can see, the Web Forms User Control item template doesn't get listed if the project is a Class Library. As a result, the easiest option may be to add a Web Forms project to your solution, add the User Control to it and then drag it into the Class Library project. You'd need to add the appropriate references to the Class Library project manually.