Continuous delivery css issue with Visual Studio Online to Azure website - asp.net-mvc-4

I am using Git to push my project to Visual Studio Online. my project is linked to an azure website for continuous integration and delivery.
I have made changes to the Site.css file and pushed the changes to Visual Studio Online. the automatic build deployed the project to my azure website.
but my changes to the Site.css were not deployed to the website. although my other changes to the views and controllers are OK.
I have reviewed and verified that the updated Site.css is pushed successfully to Visual Studio Online. but for some reason it is not included or applied in the deployment.
when I publish the project from my local VS.2013 to the azure website it works fine and the css is updated.
the problem is in the continuous delivery from Visual Studio Online to Azure website.
what is required to include the Site.css in the continuous delivery ?

Related

Publishing LocalDb with ASP.NET Core 3.2 Applications Visual Studio 2019 Webdeploy

I have a test application running on ASP.NET Core 3.2 Blazor.
I need to publish the site to a staging url for first stage testing. For this test I want to keep the application running on the same localdb files uses in development.
the connection string for the database locally is
Server=(localdb)\\mssqllocaldb;Database=MyDatabase;Trusted_Connection=True;MultipleActiveResultSets=true
The files for the database are stored currently in C:\Users\{username}\MyDatabase.mdf (along with the _log.ldf file).
How can I move this into the publish process with Visual Studio please? Do I need to relocate the file to the project directory and publish this way? Equally how do I then setup the server to know the database is stored in the project folder?

Migrating code and history from SVN into TFS 2012

I have managed to setup SvnBridge v6.2 with TFS 2012. (Used this to make it work:How to upgrade codeplex solution with reference to TFS2012 library?)
On Server PC we have installed TFS (server), SVN (servser) and IIS (on IIS SVNBridge is setup on port 8081).
On Client PC we have installed VS2010 (TFS) and Tortoise SVN.
Now I am following the SVNBridge website article which mentions that:
Using TortoiseSVN, run a checkout using the following path:
http://<yourwebserver>:8081/<TFSprojectname>
I do the checkout on a folder in TortoiseSVN, enter URL Repository as
http://yourwebserver:8081/TFSprojectname
and choose the checkout-directory as: C:\test on my local PC. The code from the TFS 2012 along with the checked-out files has been copied to the above folder on the PC where I am performing the check-out.
Now I want the code which is being checked-out should go and sit into the TFS 2012.
I was told that we can use SVNBridge for code migration from SVN into TFS. So what is it that I am not doing right?
Since I could not get the SVNBridge to do the migration of code from SVN into the TFS, I have used another tool (free) SVN2TFS:- http://svn2tfs.codeplex.com/
Now I have successfully migrated code from SVN along with revision history and folder structure into TFS2010.
I think now next step is to migrate from TFS 2010 to TFS 2012 which should not be a difficult task.
http://www.timelymigration.com/
Why Timely Migration?
Making the move to Team Foundation Server (TFS) can be a major undertaking and one of the most often overlooked tasks is deciding on how you are going to get your source into TFS.
Only importing the tips of your codebase loses a wealth of information and functionality that is the true value of source control systems. Timely Migration is a suite of tools designed to be the complete solution for moving detailed history from your existing source control system.

Getting Auto Deploy to work with MSBuild on a build server

Please pardon a newbie's question about MS TFS and Visual Studio 2012, I hope I'm using the correct vocabulary.
Our shop has recently moved to MS TFS and Visual Studio 2012 to build internal web services for integration. Currently we have a TFS 2010 Server running on Server2008R2 and a Build server on a Windows 7 box, our dev application server is also running Server2008R2. I have been given the job of getting a nightly build and deployment running. I have the build definition working but the deployment portion is not functioning. I have installed Web Deploy on both the dev application server and the build server as per these articles:
http://www.kevingao.net/version-control/how-to-auto-deploy-web-application-with-tfs-build-server.html
and
http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-web-deploy
We have configured an user, web_deploy_dev in active director and that user is a local admin on the dev app server.
The parameters added to the build definition are:
/p:DeployOnBuild=True
/p:DeployTarget=MsDeployPublish
/p:MSDeployServiceURL="https://PA-APPSRV1-DEV:8172/msdeploy.axd" /* double quotes not in original code */
/p:DeployIISAppPath="DW/DWServices" /* E:\Webroot\DW\DWServices */
/p:CreatePackageOnPublish=True
/p:MsDeployPublishMethod=WMSVC
/p:AllowUntrustedCertificate=True
/p:UserName=migp\web_deploy_dev
/p:Password=******
I suspect that MSBUILD is not even calling msdeploy.exe as I see no errors in the windows event and application logs, but I do not know all the places to look. I can use a web browser and connect to the service on the dev app server as the web_deploy_dev user from the build server, I receive a web page not found error after inputting user name and PW, but I assume that is to be expected.
I am at a loss as to where to look next, I've tried searching the web but nothing I try seems to work.
Thank you in advance for your help and input.
Roy
It sounds like you are experiencing a problem where your build completes and claims success, but you aren't getting any error and nothing is actually deployed. When I've experienced this with my TeamCity build server, the problem was that MSBuild was not set up on the machine that would do the building and deploying. These are my steps to resolve the problem I think you might be having:
Make sure that at least Visual Studio Express is installed. you can tell if a full enough version of Visual Studio is installed by navigating to the
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\ directory. If you see folders like 10.0, 11.0, or '12.0', look inside them and verify that there is a Microsoft.WebApplications.targets file. Note the versions that pass that check.
In your Build Configuration, add a /p:VisualStudioVersion=12.0 or whatever version of Visual Studio is appropriate.
Let me know if this gets you anywhere or not. I'm really curious to hear if you are finding any errors or logs anywhere. Basically, in my experience using Web Deploy and MSBuild with TeamCity, if the machine that is building and deploying doesn't have the MSBuild installed with the Microsoft.WebApplication.targets file, it silently fails.

How to deploy custom files on remote PC via Visual Studio Remote Debugger 2012

Debugging on Remote PC can be tricky if you need to deploy many files on that PC.
First of all you need to configure PC, i.e. share folders, configure security to easily copy files from your to test PC.
Then you need a deploy script to actualy copy files. And you need somehow to send target PC ip to it.
In Visual Studio 2012 there is Deploy step then studio can deploy your project's files onto remote PC, but it seems it is only working with "easy" cases then no need to copy files on different folders or rename it to start debugging.
It seems that new Remote Debugger has new hidden api to copy files. But it is unavailable from outside of Visual Studio.
If there is a way to use Visual Studio Deploy function to implement "One click Deploy/Debug" procedure?
The answer to the question is somewhat dependent on the type of project you want to deploy. For example, in the C++ project system under Project Properties->Configuration Properties->Debugging->Remote Windows Debugger you can specify a Deployment Directory and Additional Files to Deploy.
If you want to implement your own deployment system, then the answer is yes, you could write a Visual Studio extension, use the deployment API to both copy files and execute anything you required such as a configuration script on the remote machine.

Unable to create MVC4 web role for Azure project

I tried creating an Azure project in Visual Studio 2012 Ultimate with a single MVC4 web role in it but got this error message.
The project itself after creating didn't contain the MVC4 role I wanted. I only found similar error messages for MVC2 and on my other computer it works fine.
The roletemplatedata.xml file is a file included in each Windows Azure project in Visual Studio (ie: Web Roles with MVC3, MVC4, WCF, ...). You should be able to find it under C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ItemTemplatesCache\CloudService.
If you can't find this file there is probably something wrong with the installation of the Windows Azure SDK (VS2012 tools). Try to uninstall every Windows Azure component, download the latest version of the full installer here (install the SDK link) and install it again. This should fix your problem.