I have the below requirements in set up and deployment project
Need to find dot net version available or not
If not we ask user to have that
if exists we need to check two DLLs are available in GAC or not
if not we need to register them
But I don't have any idea as how to proceed....any help!
Is the .Net Framework installed?:
Right-click on your setup project, hover on View, and click Launch Conditions:
You want to add .NET Framework to your launch conditions:
After that, you can right-click on .NET Framework and click Properties Window. You can choose the Version number in that window.
Install assemblies to the GAC:
Right-click on your setup project, hover on View, and click File System:
Then in that window, right-click on the root node (File System on Target Machine), hover on Add Special Folder, and click Global Assembly Cache Folder:
Drag your assemblies to this folder to have them installed on the machine. If the correct version is not already there in the GAC, the setup program will install it.
Related
When I try to add a missing assembly to my project (for unit testing specifically) I noticed that the Assemblies tab is missing in the "Add Reference" dialog , see:
Is this a bug or a expected behavior? If it's expected how we are supposed to add the missing assemblies.
Note that I already tried through Nuget package manager and still didn't work.
It is correct behaviour. The Assemblies tab is not available for Net Core projects. You wont be able to add assemblies from your system, because Net Core projects work with dependencies from Nuget. So, to add your references, you need to use the Nuget Package Manager instead.
Right click your project
Choose "Manage Nuget Packages"
Find the package you want to add from the list
You can add external assemblies, e.g. Rebex, by right clicking your project, select Add >> Project Reference... >> Browse and then hit the Browse button.
I've just done that using VS2019 v.16.9.4 on a .Net Core 3.1.x project. No problem at all.
I have an ASP.NET project which refers some web services. When the project is published, the bin folder is created and it contains app_Webrefernces.dll.
Now I need to add copyright information to this dll. How can I do that?
You can set the Metadata for your Assembly (DLL) like Title, Description, Copyright and more using
AssemblyInformation
You find this in Visual Studio
To access this dialog box, select a project node in Solution Explorer, then on the
Project menu, click Properties. When the Project Designer appears, click
the Application tab. On the Application page, click the Assembly Information button.
or in the
AssemblyInfo.cs file
{YourProject} / {Properties} / AssemblyInfo.cs
hope this helps
Inside visual studio,
go to solution explorer, expand your project's properties, overthere you an fill in AssemblyInfo.cs with basic copyright information for our dll.
This will be visible in compiled file on right clicking it and looking to the properties of the file.
IDE: Visual Studio 2010
.NET 4.0 x64 running on Windows 2008 R2 x64
All projects are configured for x64 platform.
When I compile the web application project, it puts all the required DLLs in the bin directory...HOWEVER, the web application's DLL is inside the \bin\x64\Debug.
This causes the dev web server (I use ultidev but this affects VS web server as well) to try to load the web application DLL from the \bin\ directory..but because it isn't there, it throws an exception failed to load type 'Global' (global.asax page). If I copy the web app dll from \bin\x64\debug to \bin\, it works fine.
Why isn't VS putting a copy of the web app dll to the \bin\ directory?
In the project properties (right click on the web project, at the bottom click properties) open the "Compile" section. You should see "Build output path" with a textbox below it and a browse button. Change the build output path to "bin\"
Due to another issue this didn't help me directly but did get me thinking.
I had to right-click on my project, "unload", then right-click again and edit the project.xml which included the outputPath variable.
That one was difference somehow so I edited it to point to "bin\", saved, right-clicked on the project one final time, choose "reload" and went about business as usual.
That solved my problem along with the issue of my break-points not being hit (because I had old files in bin\ which weren't getting cleaned up thanks to the bad path).
I have a ASP.NET project which relies upon the FreeImage .NET wrapper. This is loaded using a reference to a external directory. The wrapper relies upon the FreeImage.dll being present to work (clearly).
How do I get Visual Studio to include a reference to the FreeImage dll. It's not a .NET assembly, i think it was built in something else (so I can't add it as a reference).
I don't really want to have a copy for this project as these files reside in a different SVN repository
Add a pre-build macro/script to copy the file across each time you build. There's no way to add a symbolic link into a visstudio afaik.
I am assuming the .dll was built using a .NET supported language like C#.
You can just right click over the site and select 'Add Reference'.
Browse to the .dll you are looking for and then click 'Ok' to add it.
It should add a .refresh file to your site and the dll. The .refresh file is what is checked into your source control letting the site know the relative location of the .dll to the site.
How do you attach a DLL to a asp.net site? I want to be able to debug and edit the DLL without having to keep replacing the reference in my asp.net site. I checked attach to process but didn't see the worker process. I am using asp.net, IIS 7.
Just put it into /bin folder of your web application.
OR
Add reference to this .dll by right clicking on References > Add Reference > Browse > Select your .dll file and lick OK.
Then set it's "Copy Local" property to "True". This way .dll will be copied into /Bin folder each time you build application.
alt text http://xmages.net/out.php/i170817_1.png
Using Visual Studio you should create a solution that has your website as a project and the DLL (code) as another project. Make a reference in the website project to the DLL project and it should update it automatically.
If you are not using the web application model and just the website model you could just have your DLL project output to your website's /bin directory directly. That will update the DLL in the website/bin folder whenever you build your DLL project.
If you want to edit the dll, open that project up in a second instance of Visual Studio and treat it like you would for any other project.
Set the reference in your /bin folder to the debug dll that the second Visual Studio creates.
I'm assuming you have Visual Studio...
If you're just trying to add a dll, you can add a reference to it by right clicking on your website node and choosing "Add Reference..." .
You will be able to debug the dll if you have its pdb along with it (to load the symbols from). You will NOT be able to edit the dll.
If the dll is in fact another project you have the source code for, just add the project to your solution, and from your website project add a reference from the "projects" tab. VS should add a reference and dependency so that it keeps the dll updated when you change code in your dll project.