Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to deply clickonce with netmodule file
 

How to deply clickonce with netmodule file

I have create multiple netmodule file using csc command line. so I want to deploy my application using this netmodule file to reduce data transfer. How to do that?
MoDD  Thursday, September 10, 2009 8:10 AM

Hi MoDD,

From on your description, you have compiled some *.cs files to *.netmodule files and want to deploy these files in ClickOnce.

Based on my understanding, we can add these .netmodule files like common output files into our project and deploy them. These are the steps:

1. Right click the project and click Add->Existing Item menu to show the item adding dialog.

2. Select the .netmodule files and click OK to add them to our project.

3. Right click all the .netmodule files to show the properties dialog.

4. Set Build Action property to Content and set Copy to Output Directory property to Copy always.

5. Rebuild the project, the files would be copied to the main output directory.

6. On the properties dialog of the project, select Publish tab.

7. Click Application Files button to show the Application Files dialog.

8. We would see the .netmodule files on the dialog. We can change the Hash to Include/Exclude to include/exclude a file in the publish files.

You can get more information about ClickOnce from:
http://msdn.microsoft.com/en-us/library/wh45kb66.aspx.

Let me know if this does not help.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Monday, September 14, 2009 10:55 AM
Can you give more information? To be honest, I have no idea what a netmodule file is. Are you saying you have an application and you want to include this file in the deployment of that application so your application can use it?

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Thursday, September 10, 2009 9:50 AM
I have create a largely solution, this solution has 4 project and each of project size is about 10MB. I decide to complie each *.cs file using csc command line compiler then i have a lot of *.netmodule file and one dll file that like those file.

So, I want to create a clickonce application using these netmodule and dll file instead of single large one file. I want to know how to do that?

Thanks,
Ek
MoDD  Thursday, September 10, 2009 10:02 AM

Hi MoDD,

From on your description, you have compiled some *.cs files to *.netmodule files and want to deploy these files in ClickOnce.

Based on my understanding, we can add these .netmodule files like common output files into our project and deploy them. These are the steps:

1. Right click the project and click Add->Existing Item menu to show the item adding dialog.

2. Select the .netmodule files and click OK to add them to our project.

3. Right click all the .netmodule files to show the properties dialog.

4. Set Build Action property to Content and set Copy to Output Directory property to Copy always.

5. Rebuild the project, the files would be copied to the main output directory.

6. On the properties dialog of the project, select Publish tab.

7. Click Application Files button to show the Application Files dialog.

8. We would see the .netmodule files on the dialog. We can change the Hash to Include/Exclude to include/exclude a file in the publish files.

You can get more information about ClickOnce from:
http://msdn.microsoft.com/en-us/library/wh45kb66.aspx.

Let me know if this does not help.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Monday, September 14, 2009 10:55 AM

You can use google to search for other answers

Custom Search

More Threads

• Running executable on each file installed
• Error Deploying With ClickOnce
• How do I sign a CAB file?
• MSBUILD and clickonce
• copyright
• Altering the Product Name during installation
• Clickonce updates interval
• Windows Installer Package
• Strange behaviour on desktop shortcut - what's happening ?
• Reverting an upgrade