16,003,345 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by I See Sharp (Top 8 by date)
I See Sharp
20-Jun-16 5:15am
View
Yes, that's great.
I See Sharp
17-Jun-16 4:42am
View
Ok, and how do you start that batch file then?
I See Sharp
17-Jun-16 3:13am
View
Deleted
Need to do this in c# code. And it can change everytime based on which projects the user selected.
I See Sharp
16-Jun-16 3:36am
View
Deleted
I need to start Visual Studio 2008 Command Prompt and generate the files to publish a web site.
I See Sharp
16-Jun-16 3:26am
View
Deleted
I will update my question.
I See Sharp
16-Jun-16 3:02am
View
I'm trying to publish a website, I need to define the target path for those files. But I don't know how to do this programmatically. Everything goes fine, except the publishing. Because the target is the only thing missing in my code bellow:
Type type = Type.GetTypeFromProgID("VisualStudio.DTE.9.0", true);
DTE dte = (DTE)System.Activator.CreateInstance(type, true);
MessageFilter.Register();
dte.MainWindow.Visible = true;
VsWebSite.VSWebPackage webPkg = dte.GetObject("WebPackage") as VsWebSite.VSWebPackage;
webPkg.OpenWebSite(path, VsWebSite.OpenWebsiteOptions.OpenWebsiteOption_None, true);
SolutionBuild2 slnbld2 = (SolutionBuild2)webPkg.DTE.Solution.SolutionBuild;
slnbld2.Clean(true);
slnbld2.Build(true);
slnbld2.Publish(true);
And I have read that you can generate the files that are needed (to publish a web site) by running Visual Studio 2008 Command Prompt with the appropriate arguments. But even that doesn't go well.
I See Sharp
15-Jun-16 10:44am
View
Deleted
Ok, which command should be in the ProcessStartInfo? I need to provide the path & filename to VS 2008 Cmd Prompt, but not hard coded. Is this possible?
I See Sharp
15-Jun-16 2:50am
View
Do you have any example how to do this in code?
Show More