Solved

Visual Studio 2005 - Setup Project

Posted on 2009-04-02
3
605 Views
Last Modified: 2013-11-26
Hello.
I've got a C# project in VS2005. Under that solution, I added a Setup Projecct.  It detects dependencies and .NET is one of them. I actually de-check the option to make a setup for .NET.
To make a long story short and get to the question - my project is just using the regular default references.  But to make those run, does my target machine also have to have .NET 2.0 installed?  My setup from the Setup Project seems to hang on whether .NET is installed or not.  That doesn't seem right to me. Shouldn't an exe be able to run without .NET?  After all, it's just a compiled module without any special DLL references.  
Is there a problem with the way I am setting up the Setup Project?  Suspect that by including the Setup Project in the program's solution, it might be looking at the project dependencies and always give me that .NET prerequisite.  Haven't tested it yet, but should I create a completely separate Setup Project and just include the bin output of the original project?  Is there some kind of guide on how to do this nicely?

Best Regards,
Alan
0
Comment
Question by:adwooley2
  • 2
3 Comments
 
LVL 4

Expert Comment

by:shrikantss
ID: 24056996
0
 

Author Comment

by:adwooley2
ID: 24059344
OK - I have seen this site, but the thing that catches my eye is this:  
"Note: This does not include the .NET framework."

So, back to my question - does my target machine also have to have .NET 2.0 installed?  My setup from the Setup Project seems to hang on whether .NET is installed or not.  That doesn't seem right to me. Shouldn't an exe be able to run without .NET?  After all, it's just a compiled module without any special DLL references.  
0
 
LVL 4

Accepted Solution

by:
shrikantss earned 450 total points
ID: 24065758
hey even you compile your exe without using any dll you already code it using the visual studio .After You  Compile it got converted into msil code which can be understand by CLR which is the .net runtime
so you need to have .net  framework installed on the client machine where you want your code executed since
1.as you are using .net it is separate platform as it included a virtual machine which interact with your operating system on behalf of your application .It parse all the functionalities  given in your code to the operating sytem and then you get the desired result of it...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Loop not working 29 48
Saveas need to save a copy 16 26
Help with sorting data in Listbox using VB.NET 3 53
How do ASP.NET and MVC work together? 4 30
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now