none
How to publish a clickonce application using c# code something like Microsoft.build....?? RRS feed

  • 질문

  • I'm now trying to publish a clickonce application with c# code only with something like a msbuild api in Microsoft.build and others.

    The code I wrote down was just like below...

                Engine engine = new Engine();
                Project BuildProject = new Project(engine);
                BuildProject.Load(@"D:\Projects\Deploy.Win.Startup.csproj");
                BuildProject.SetProperty("Configuration", "release");
                BuildProject.SetProperty("ApplicationRevision", "1.1.1.1");
                BuildProject.SetProperty("PublisherName", "");
                BuildProject.SetProperty("PublishDir", @"D:\Projects\DeployTest");
                BuildProject.Targets.AddNewTarget("Publish");
                BuildProject.Build("Publish");

    but it did not work. Q.Q

    How can I publish it with c# code?

    please give me a good solution! please~~

    2010년 7월 22일 목요일 오후 1:08