Package for C# library




    I have created C# class library. I want to ship this class library to machine where framework is not installed.

    I want to create package that will check whether .NET Framework exists and if not it will install it through my setup.


    How can we create the setup which will have .NET Framework file? If required that framework will get installed otherwise only files will get copied to particular location.




    Tuesday, October 02, 2007 11:04 AM


  • Hi Nikam,

    I suggest that you can create a setup project in visual studio. Then add the ClassLibrary’s project as output into the setup project. For more details, please check out How to: Add and Remove Project Outputs in the File System Editor. After that, the .net framework will be automatically included in the Prerequisites of the setup project.

    Open the Prerequisites Dialog Box select the .net framework version of your classlibrary, select “Download prerequisites from the same location as my application” to specify that the prerequisite components are installed from the same location as the application. This copies all the prerequisite packages to the publish location.

    Then you can use the setup program when you’re shipping your class library to machine where framework is not installed.

    Hope this helps!


    Thursday, October 04, 2007 6:42 AM