visual c# - Add visual web developer project as a reference - project

I want to create a winform/console application inside visual c# that uses class library project from visual web developer, how do I do that?
Thanks

Right-click on the references folder in the Solution Explorer pane
Click Add Reference in the menu that appears
Select the Browse tab
Browse to the file you'd like to include
Click OK
You're done! The file has been added to your references.

Related

VS2017 RC 2 csproj file location

I am trying the updated visual studio (VS2017 RC 2) with .net core functionalities. I learned that MS team removed project.json and instead created csproj file. However when I created an empty .net core web project (I also created webapi project) no csproj file is created within the project. Am I missing something, where is the csproj file located?
If anyone needs the same answer for macOS, in Visual Studio for Mac, right-click the project file (child of "master") in the Solution pane. Choose "Tools", then "Edit File".
The file is not showing, but if you select a project, right click on it, there is a menu called "Edit MyNetCore.csproj"
What I often in Visual Studio 2017 RC3 to edit the csproj file, is:
Right click on the project title in the Solution Explorer window. Select the option "Edit [project name].csproj" to open the csproj file in the code editor window.
I have VS2017 RC installed and I can see WebApi.csproj files (WebApi is the name of my project). It is located as expected in the root of the project.

Where is the default Settings file in a Visual Basic Project?

I'm editing a Visual Basic application. I save some settings per user. I need to know where the application configuration is located in Solution Explorer.
If you are looking for the user settings strings, you can see them from the menu:
Project->[YourProject] Properties...
Then select 'Settings' at the side tab.
The project application configuration is under My Project in the Solution explorer, or the project window mentioned above, but the 'Application' tab.
Your settings are in Settings.settings file which is by default hidden in a VB.NET project. The file shows settings properties and their default values.
To show it you can:
Click on Project node in Solution Explorer
Click on Show All Files button on the toolbar
Open My Project node
Double click on Settings.settings to open it in designer
Alternatively as mentioned also by Jim, you can Right Click on Project node and choose Properties, then you can see the settings in Settings tab of project properties.

Where can I find "microsoft.office.interop.excel" in the Assembly / COM browser window?

I wanted to add the reference microsoft.office.interop.excel to my project.
I went to Project > Properties > References > and clicked the Add... button.
In the Reference Manager dialog, I have the following options:
Assemblies
Frameworks
Project folder
COM
Search
There is a search window. I typed microsoft.office.interop.excel, but it is just not found.
I had to browse for it to locate it manually on my drive.
Why?
Project menu > Add Reference.
On the COM tab, locate Microsoft Excel 15.0 Object Library
That's the reference which contains Microsoft.Office.Interop.Excel.dll
If you are prompted to generate wrappers for the libraries that you selected, click Yes.
You should see it in the Visual Studio Reference Manager Window when you select COM. Look for Microsoft Excel 14.0 Object Library (or the version you have installed). If you don't see it, it needs to be re-registered. The easiest way to do this is to just re-run it's installation.
To re-install it, find the Primary Interop Assembly executable on your drive download it from Microsoft. Search for "Office Primary Interop Assembly". After downloading, run the executable to extract the msi file for the PIA. Run the msi file to complete the installation.

How do I upgrade a .NET 2.0 website to 3.5?

My website is VB.NET 2.0. I already opened a it in VS2k8 and told it not to upgrade. Now I want to upgrade, how do I trigger it? All the posts say 'just open it in 2k8 and it will prompt you'. Well I did, and it did, and I didn't want to yet. Now I cant get it to come up.
Open your project properties and choose Target Framework in the Application tab. There should be values such as ".NET Framework 3.5", ".NET Framework 2.0", etc. You can access project properties in your Solution Explorer by right-clicking on your project name and choosing Properties from the right-click menu.
If Solution Explorer isn't showing for you in Visual Studio, you can access it via the View menu > Solution Explorer.

WCF - VS2005 to VS2008 Sln Conversion Problem

I have converted a VS2005 solution to VS2008 solution.
I am trying to Add a Service Reference to a project in the solution but not finding the desired option in the Right click -> Popup Menu.
I am not trying to add a Web Reference. I am trying to add a Service Reference. I am working with a WCF Client.
Check if the Project (Project-->Properties) is set to Target Framework ".NET Framework 3.0" or ".NET Framework 3.5".
Maybe it isnĀ“t changed during conversion from VS 2005 to VS 2008
Do you mean the "Add Web Reference" option, like in VS2005?
You need to right-click your project, select "Add Service Reference", then click the "Advanced" button in the bottom-left of the popup window, and then click the "Add Web Reference" button in the bottom-left of the next popup window.
From what I can tell, the project must be either a C# or VB project in order for the Add Service Reference option to be available. If you add a CLR-enabled C++ project, you'll have access to the Add Web Reference option, but not the Add Service Reference option. If the C++ project is not CLR-enabled, then neither of these options are available. Can you confirm what type of project you're using?