Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Where is .NET 3.5 Mage.exe located [Clickonce App]
 

Where is .NET 3.5 Mage.exe located [Clickonce App]

We have a build server with both VS 2005 and VS 2008 installed on it [along with .NET 3.5 SP1 Framewerk], when our MS Build starts the ClickOnce deployment, it automatically looks for mage.exe in ths folder: "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin"

I searched for mage.exe under "C:\Program Files\Microsoft Visual Studio 9.0\SDK\v3.5\Bin" but cannot find it.

Do we have to install any other softwares to get the v3.5 mage.exe?

Please advice, thanks!
sridas  Friday, October 02, 2009 3:20 PM
I will answer my own question, I did find the latest mage.exe under "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin" but my other question now is how can I make MS Build to call this exe instead of the other?

I am using the below code to get the Framework SDK Path, this does not go to the Microsoft SDK directory, is there any other property that I can use? [I am not sure if this will help me: "GetFrameworkPath"] 

 

<GetFrameworkSdkPath>
<
Output TaskParameter="Path" PropertyName="WindowsSDKPath" />
</
GetFrameworkSdkPath>

thanks!
sridas  Friday, October 02, 2009 3:51 PM
Why don't you just copy mage.exe to a specific folder and then reference it there?

Its location depends on the version of Windows and which SDKs you have installed. I am running Windows 7 and have two versions of it in two separate SDKs folder (I have a v7.0 too).

It doesn't have to be in the bin folder for you to use it. AFAIK there are no other dependencies.

RobinDotNet
Click here to visit my ClickOnce blog!
Microsoft MVP, Client App Dev
RobinDotNet  Friday, October 02, 2009 7:06 PM
Hi sridas,

I am writing to check the status of the issue on your side. Could you please let me know if the suggestion works for you? If you have any questions or concerns, please feel free to let me know. I will be more than happy to be of assistance.

Sincerely,
Kira Qian
Send us any feedback you have about the help from MSFT at EMAIL REMOVED
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework!
Kira Qian  Tuesday, October 06, 2009 8:10 AM

You can use google to search for other answers

Custom Search

More Threads

• Change working directory for a custom action
• Setup Project -> change Localization -> Property not valid / External Exception ??
• What is the use of Mage ? How to use It ?
• Error in deployment ClickOnce application
• Knowing the install path in code
• ClickOnce application deployment issue
• Problem getting correct version of ReportViewer included as prerequesite in MSI
• AppUpdater and Users without admin privleges...
• Except in memory process / The value is outside the expected range
• Program Icon Question