I want to use ObjectListView in a project coded in VS 2010.
Therefore I did the following things:
Downloaded the project
Opened both ObjectListView.sln to convert it to a VS2010 project
Added one of them to my project-folder in VS 2010
Added the project-assembly to my project
Added the namespace xmlns:o="clr-namespace:BrightIdeasSoftware;assembly=ObjectListView"
It compiles but it doesn't find any of its classes in my project. That means after entering the namespace: "
Does anyone know what I can do about that?
The ObjectListView project in the solution is missing "Filters.cs". It's located in the directory, just not added to the project.
Add it to the project, and everything will build (using VS2010, and ObjectListView.sln).
EDIT:
It looks like you're creating a WPF project. ObjectListView is intended to be used in WinForms applications.
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 imported standard unitypackage file to my Unity3D project which has its own C# code. Then I open my Visual Studio Community Edition in order to use its code as namespace and I get this:
It doesn't even showing in Solution of this project:
There is no Nakama folder where these scripts are being located.
Is there any way to recreate project solution?
I'm using Visual Studio Community Edition 2015 14.0.25
I solved the problem by :
Adding Embedded packages in Unity settings
Re-generate project files
Unity 2019.3.15f1
Noticed that my files was in the Packages folder.
First of all, you should use Visual Studio 2017 (is not mandatory)
Then add your project to your solution.
Then add a reference to your
added project.
if you can successfully reference to your project
only then you can use it.
Did you add your existing project like this one?
If it's not exist in the express version, is there any other way to make Windows Control Library ?
This is what I see when trying to make a new project:
If you mean as in a COM .ocx file, that's not how .net works. You might even have to get Visual Studio 6 installed to do that, although I suppose check out the other project types. It's also possible there are other project types that are not installed by default, so try re-running the VS installer and see what else is available.
For a .net controls library you should create a class library and add your forms to it. VS will add the necessary references for you, and you can then reference that assembly from any other managed code.
In Visual C# Express Edition, according to this :
Windows Control Library: Missing Windows Control Library Template
Windows Control Library Template should be same as : Class Library project template
But with added reference to System.Windows.Forms.dll.
I found another trick to create this missing template for visual studio 2013 Express, With the help from this link:
http://www.dotnetspider.com/resources/21844-How-add-windows-control-library-template.aspx
So the steps for C# express 2013 are nearly the same than in the example witch is about c# 2005
Open Visual C# Express 2013.
Create New windows Application with the name: MyLibrary
From the Project menu select Add User Control. Click on Add
Close any forms windows.
(a view with the Form already closed)
In Solution Explorer, Delete forms related files
(the corresponding .cs files should be deleted by this step)
From the Project menu select MyLibrary Properties.
In the Application tab set the Output Type to Class Library.
In the file Program.cs replace
Application.Run(Form1)
with
Application.Run()
Build the Solution. There should be no errors and the bin/Release folder should have a MyLibrary.dll file (i found it in Debug in my case)
From the File menu select Export Template.
Select Project Template then Next .
Under Template Options change the name of the template to Windows Control Library and the Description to Create windows Control .dll. Click on Finish.
Close C# Express 2013.
The next time you open Visual C# Express, you will find your newly created template ready to use.
How I add a .shproj to my Visual Studio solution and reference it from other projects?
I know that Visual Studio 2013 Update 2 added a new project type for "Shared Code." This type of project does not produce a dll itself. Instead the files from the Shared project are included as source files in the assemblies that reference it.
I know it exists because I have seen one in an open source project. However, looking through the project templates in Visual Studio I could not find a "Shared" project type.
Edit: According to the Visual Studio 2015 Preview documentation, VS 2015 adds templates for shared projects and a UI for managing the references, so the below should no longer be necessary after upgrading.
There does not seem to be a way to create one directly. It appears currently that Shared Code projects are automatically created when you create a Universal App project as shown in this introduction to creating a Universal App.
Therefore, to create one in your solution: Add a new project type "Blank App (Universal App)." Delete the Windows 8 and Windows Phone projects it created leaving only the Shared project.
Check out the Shared Project Reference Manager extension.
Note: make sure you have VS2013 update 2 or above for this to work.
An alternative to vossad01's approach is to create a shared code project, then open up the .csproj file and see what the project looks like in the .csproj. Visual Studio's csproj files are simply XML files so you can open, copy, and paste the shared code project into your own csproj.
I have project A, a C# console application which I want to reference my project B, a C# class library. My goal is to be able to make use of objects in Project B from within Project A, and see the source tree for both projects in the same Solution Explorer. I can of course make a reference from Project A to the built .dll that Project B outputs and use the objects in that fashion, but this doesn't give me the control I would like.
I'm having difficulty achieving this. I assume it should be found in Add Reference -> 'Project' tab, but I don't see any items in that tab window and can't figure out how to populate it. Am I missing something here? Both projects target .NET 4.0 framework and I am using Microsoft Visual Studio 2010 Version 10.0.40219.1 C# Express with ENU Service Pack 1 (KB983509).
Any help would be appreciated, thank you.
Open Project A
File - Add - Existing Project
Open the .csproj file for Project B
You should now be able to see the source for both projects as part of the same solution.
Now from Project A:
Add Reference
Go to Projects tab
Select Project B
Project A will now be able to use the types declared in Project B.
Open Project A, File > Add > Existing Project
Both projects need to be in the same solution.