none
MSBUILD . Create/Update dll without Visual studio RRS feed

  • Question

  • I need to build my .Net solution file. which I am able to do using MSBUILD. But it does not update my dll file. If I extract data from dll file it gives me references to last time build paths. 

    In simple words I need to generate dll files from my project solution file, without using visual studio.

    Thursday, December 14, 2017 11:03 AM

Answers

All replies

  • Hi,

    According to your description and my guessing this is the solution you are looking for:

    You need to remove (uninstall) the current version of the application, or use bigger number in the build version of the new version you compile. What usually happens is that people forget to change the built number and when you install the OS see that current installed is the same or higher version therefore no installation execute

    if you have more questions regarding msbuild app or if this did not solve your issue, then please go the right forum here (special forum for msbuild issues) :

    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=msbuild


    signature   Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]    [Linkedin]


    Thursday, December 14, 2017 12:35 PM
    Moderator
  • In simple words I need to generate dll files from my project solution file, without using visual studio.
    Friday, December 15, 2017 5:11 AM
  • In simple words I need to generate dll files from my project solution file, without using visual studio.

    Hi harshitmohanpandey

    As I asked you for any additioinal question regarding MSBuild you should use the MSBuild specific forum. We try to keep each question in the right catagory for several reason. Firstly in yhr right forum you should get best answer by people that work on that topic! In addition when new person have the same question he could finnd it there. This forum is only for people that do not know where to ask the question. We are here to point you to the right forum, as this forum's name clearly said this forum is to ask Where is the Forum For…?

    Please close the thread and if you have any following question go to the right forum!

    * In short, MSBuild uses solution file and project files to build the files in your project. MSBuild uses csc command line tool as its actual compiler, but MSBuild knows where to find assemblies, references etc and the version you want to build based on your solution and project files. In the project you can configure the version of the build.

    If you create simple cs file which you want to compile to dll library directly (you can use csc.exe) then you can add the version by adding at the top of the file (right after the all the "using"), these lines:

    [assembly: AssemblyVersion("1.0.0.0")]
    [assembly: AssemblyFileVersion("1.0.0.0")]

    In this case you need to manually manage the version and each time rise it up or the OS installer will think that this is the same version and therefore will not install it.

    Please do not continue this thread, and as I asked you if this does not cover what you need then go to the right forum where :-)



    signature   Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]    [Linkedin]

    Friday, December 15, 2017 10:09 AM
    Moderator