Query SVN repository from ASP.NET to get revision history - asp.net

I want to query my SVN repository from an ASP.NET application to list the top XX latest revisions of my application.
What's the best way to do this? execute a shell execute command against the svn command line app? or can i access it via https?

Collabnet have a open source product called SharpSVN; which is a .NET 2.0 client API for subversion.

Related

ASP.NET MVC project to push to a remote server

I have a ASP.NET MVC project locally, but want to push to a remote server so that others can use that website. I have login access to the remote server.
Is this what i need to do?
1) add a folder to IIS in the remote server
2) copy my files to the folder on remote server. If so, which files should i copy?
If you're using Visual Studio (not code) then right click on the project and select publish, then select the options to publish to a local folder. Copy all files in your published folder to your server.
If you're using ASP.NET Core then you can also navigate to the project folder and use the following command
dotnet publish -c Release -o PUBLISH_PATH_HERE
You will need to ensure that the server has your version of .NET runtime installed.
Create a release publish profile, publish, grab the files from the directory it published to. This is the simplest way. You can automate this process if you have many releases. For example publishing directly to the server or checking code into a source control of some kind and having it publish to the server.

TFS to Marklogic Integration for deployment

Does anyone know about any type plugin or tool through which we can do integration of TFS with MarkLogic which can help us doing deployment directly from TFS to MarkLogic Module database.
You will need a TFS client to first fetch the files from TFS, and then load the modules into MarkLogic.
It's the same sort of process that you would have for any version control system, such as Git or SVN. You need to obtain the modules from the version control repository and then deploy them.
For instance, for a CI environment you can configure a Jenkins project to use the TFS Plugin to poll and look for changes or build periodically on a schedule, and then use your build/deployment scripts, such as ml-gradle build to deploy to MarkLogic with the appropriate target (i.e. mlRedeploy, mlReloadModules, etc) depending upon whether it is a complete install or re-install, or if you simply want incremental deployment of module changes.
No, there is no tool/functionality available.

Why is it so difficult to exclude XML documentation from a Release build?

Every time I Publish a Web Deployment Package using a Release Build I get this error once I call the Web API;
HTTP 500 Internal Server Error
Could not find file 'C:\SolutionDir\ProjectDir\bin\AssemblyName.xml'
Here is the steps I perform when deploying to the server.
In Visual Studio 2013 right click Project and select Publish...
Check I'm happy with my Publish Profile and click Publish.
Locate the Deploy folder in my Web API Project and copy it to the destination (plus check backups of previous build).
From the server I wish to deploy to I open up Internet Information Server and select the Application I wish to deploy to then right click select Deploy -> Import Application....
Following the Import Application package wizard selecting my deployment package and checking any settings before clicking Finish.
After this process I attempt to test the Web API using Fiddler and receive the error mentioned above. I've tried various methods but nothing has worked so far, the only way I can make it work is by copying the XML files into the bin folder on the server from a Debug build of the project.
What I don't understand is I shouldn't need to do this to make it work, why does Visual Studio / Web Deployment insist the XML exists?
Solutions I've already tried
A: How to prevent the copy of XML documentation files in a release mode build?
A: Preventing referenced assembly PDB and XML files copied to output
A: How to prevent Visual Studio from “publishing” XML documentation files in web projects?
If you create a web API project with certain options it also includes MVC functionality to display web API help pages based on the XML documentation.
I think the Nuget package that will be in the solution is called Microsoft.AspNet.WebApi.HelpPage.
I've never used it, so I'm not up with when it may potentially check for the XML files, but perhaps removing this and the MVC stuff (if you do not use the documentation) will stop it looking for the XML files.

Can we retrieve asp.net project from azure?

I am working on a asp.net test project. I were deploy the project to windows azure. After that I add some code and the project stop working, but the project on azure is still working. Is there any way that can make me retrieve the project from azure ?
In visual studio, I can connect to windows azure and displaying the projects that I deployed to it. I can see some of the files but not all. The important files for me which is the controller files doesn't appear.
Azure isn't source control. What you would have published to azure (I'm hoping) will not be the whole code but a 'published' version of it.
Short answer would be no
When you publish a Web dev project to Azure Visual Studio compiles all the source code (.net) you have. Then the compilation results are binary files (.dll) and some other website assets like css,js and html files.
So there are no .Net source files from your project published into the website, because of that you can't get your source files again.
I strongly recommend you to check these links
Continuous deployment using GIT in Azure App Service
Using Git
in Visual Studio
spanish demo - Repositorios Git privados y
gratuitos
Besides of that you can try to use any source code repository or ALM suite, As you're using azure you can also use Visual Studio Online to host your projects for free and also be able to publish directly to azure repositories.
more info Visual Studio Online
You can not get code from this method. use FTp tool, like Core FTP, FileZilla for that.
These are steps get ftp of your web application.
Go to azure (https://portal.azure.com).
Select web app from browser all option.
Select you app from list an then click on settings option.
Then click on properties, then enable you ftp and create password for that.
FTP/Deployment User , FTP HOST Name , Password
Note: You will not get your code fils( .cs).

SDL Tridion : How do I schedule a page to publish recurrently?

I have to schedule a page to publish automatically once a week. I don't see any out if the box feature to schedule it. How can this be achieved using the SDL Tridion 2011 APIs.
Your best bet would be to write a small command line or power shell script which uses the SDL Tridion Core Service, then schedule it to run using the Windows Task Scheduler. Once you have created a Core Service client (there are lots of examples here on SO), you can then call the publish method as follows:
_client.Publish(pageId, publishInstruction, targets, priority, readOptions);
If you need further details please download the CoreService API from the following URL and search for "ICoreService2011.Publish":
https://www.sdltridionworld.com/downloads/documentation/SDLTridion2011SP1/index.aspx

Resources