Build Deployment Package with Pre-Compiled (not the raw files)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dorandoran
    New Member
    • Feb 2007
    • 145

    Build Deployment Package with Pre-Compiled (not the raw files)

    I created an MSI package and it works great. However, the source code aren't compiled. They show up row in the test web server. This is No No in our environment. Are there any steps that I am missing during the creation of MSI package. Both Web Site Project (meaning the web service i created is in the http:\\localhos t\BannerWS) and setup project under one solution. (Right click on solution won't show Add a new WDP. I added the web setup project by going to file > new > project > othere project types > setup and deployment > web setup project. The properties page for the deployment project only shows configuration properties and build is listed. there should be 4/5 items in the main tree.)

    I followed this article but my package is not based on the compiled version (still the raw files)

    Build web apps and services that run on Windows, Linux, and macOS using C#, HTML, CSS, and JavaScript. Get started for free on Windows, Linux, or macOS.


    1. I right click on the web services project and clicked on "Publish Web Site".
    2. I went to the file system and saw that it compiled.
    3. Then I right click on the deployment project (in the same solution), Add > Project Output
    4. In the project drop down I see the current project c:\...\webservi cetest\ (not the pre-compiled one) and I can't change this
    5. In the body it states "content Files" , I select that and click OK
    6. then proceed with Build.
    7. I take the MSI and install and then I see all the aspx.cs files, wsTEST.cs, etc. insead of the dll files. the bin folder is empty...

    Any suggesion?
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    If you don't want your source code to be part of the published solution then you have to specify that when you are publishing the website.
    • Right click on your website project and pick "Publish... "
    • Under the "Copy" section in the "Publish Web" dialogue select the "Only files needed to run this application"
    • Click "Publish"

    Comment

    Working...