Visual Studio Build Events not working in VSTS
I have been trying to get the Build events working in VSTS but not able to find any solution. I have ASP.NET MVC projects and all of them having post build events which needs to be working in order to produce full package of website.
Build is running fine but failed when it's going to create package and not able to find some project included files which is supposed to be created by post build event.
On reviewing logs, I can see post build event is not getting triggered.
I only have below line in Post Build Event
Is anyone else faced this problem and have any solution?
I'm building my project in VSTS and the task name is Visual Studio Build on Hosted VS2017 Agent.
Any help would be appreciated.
See also questions close to this topic
Azure function failed to deploy with the error ERROR_CONNECTION_TERMINATED
I am trying to deploy the azure function using visual studio and getting the error: Web deployment task failed (Complete error logs are given below). I have followed all the steps mentioned in the article http://techgenix.com/video-publish-azure-functions-azure-using-visual-studio-tools-azure-functions/ but still facing the issue. Please help me as I have spent a lot of time on this issue and didn't get any solution.
Fiddler was not running when I deployed the azure function using visual studio.
1>------ Build started: Project: TestFunction, Configuration: Release Any CPU ------ 1>TestFunction -> C:\Repo\TestFunction\TestFunction\bin\Release\net461\bin\TestFunction.dll ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== Publish Started TestFunction -> C:\Repo\TestFunction\TestFunction\bin\Release\net461\bin\TestFunction.dll TestFunction -> C:\Repo\TestFunction\TestFunction\obj\Release\net461\PubTmp\Out\ C:\Program Files\dotnet\sdk\2.1.300-preview1-008174\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeploy.targets(139,5): error : Web deployment task failed. (Web Deploy experienced a connection problem with the server and had to terminate the connection. Contact your server administrator if the problem persists. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED.) [C:\Repo\TestFunction\TestFunction\TestFunction.csproj] C:\Program Files\dotnet\sdk\2.1.300-preview1-008174\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeploy.targets(139,5): error : [C:\Repo\TestFunction\TestFunction\TestFunction.csproj] C:\Program Files\dotnet\sdk\2.1.300-preview1-008174\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeploy.targets(139,5): error : Web Deploy experienced a connection problem with the server and had to terminate the connection. Contact your server administrator if the problem persists. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED. [C:\Repo\TestFunction\TestFunction\TestFunction.csproj] C:\Program Files\dotnet\sdk\2.1.300-preview1-008174\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeploy.targets(139,5): error : Root element is missing. [C:\Repo\TestFunction\TestFunction\TestFunction.csproj] Publish failed to deploy.
Browser's connection timeout error after Build project from VS 2017
- When Running Asp.net core application with Angular it fist gives an error to download reference JSs and After that my all browser(IE, Chrome, Mozilla) gives me a connection timeout error when I tried to open any websites or pages. Also when I restart my PC then Browser start working fine.
- I have install Node JS 10 on my machine.
Enterprise library 6.0 configuration editor for Visual studio 2017
For our new project(Using Visual Studio 2017 and .net Framework 4.6), a decision has been taken to use Enterprise Library 6.0 for Logging, Exception Handling and DB access. I have a lot of resources/materials available on Internet on how to use it. My questions are,
- I couldn't find any Enterprise Library configuration console available for visual studio 2017. Is there any standalone editor available for EL6.0?
- if it's available where to download it?
- If there is no extension(for vs2017)/standalone editor available, then how can I configure it manually? Any documentation available to state the properties to be set clearly?
- Will EL6.0 supports .net framework 4.6 and work flawlessly?
Please help me to find it out and decide.
Building asp.net MVC application in VSTS
I have been using Visual Studio Online for my MVC application for a while now, but I have only been using it mainly as a way to manage my work, cloud storage and version control in case I need rollback something that I made a mistake on.
It has gotten to the point in time where I need to start managing my releases properly rather than just managing it in a folder structure. (I know, I am fairly unprofessional).
So, I am trying to use CI in VSTS but all of my builds are failing. It seems that I am missing all of my NuGet packages. Here is the log from my NuGet restore
I have read up a bit on a
nuget.configfile, which I don't have. I have tried to research into this but I am fairly lost. Do I need this file? I don't use any other packages except for nuget.
Any help would be appreciated. I use VS2015, and I can build using it. I have no idea why it can not find the nuget references.
Here is the Log of the build that failed. https://file.io/cRydzZ
It was too big to put the whole thing on Hastebin. Bu, here is a snippet of the log of when it started to break.
How to create approval process in TFS process template?
We have restrict control policy on our development cycle, and I am trying to see if I can create a approval workflow in TFS Process, which will formally approve work-items and schedule.
But it seems workflow in TFS is some-kind of simple ,compare to Windows Workflow.
Anyone would suggest a direction？
Make VSTS agent use the same "Working Directory" every time?
I have a VSTS local agent that runs a "Get Sources" build task, which causes the GIT repository to be downloaded. This works fine.
Unfortunately, my GIT repository is over 20 gigs in size. I have the "Get Sources" task set to not do any cleanup, because I want to prevent subsequent GIT downloads to not have to download the entire 20 gig repository every time.
Today, I noticed that the agent switched the working directory from
which caused the entire repository to be re-downloaded again when the "Get Sources" build task executed.
What is method by which the Build Agent decides what the "working directory" resolves to and is there a way to force the agent to use the same directory?
I really can't afford the time to download 20 gigs every time I need to do a deployment.
I have no tagging or branching going on in the repository. It's fairly straight forward aside from the size.
Thanks in advance!
Unable to access the functionality of a Web Portal after deployment
We have did a build in TFS with Visual Studio build, and we are publishing the build artifacts to drop folder and to Jfrog artifactory by doing NuGet packaging.
We are doing automated deployment for that Web package and after deployment we are able to see site is UP, but we are unable to use functionalities in that site. When we try to do deployment manually with the same files which are in Drop folder,we are able to see the site UP and Running, moreover we are able to use functionalities also.
I have compared the file sizes both are same.
But I do not know why is it causing this issue while taking the files from NuGet packaging.
How to select a Solution Configuration within VSTS Build & Release
In my project i am having few solution configurations as below:
Debug (defined at
Release (defined at
Custom (defined at
How will i select one of the above configuration for a VSTS build & release.
Devenv Command and password
I have a solution on visual studio 2017 that contains an ssis. I am trying to build an automated build and deployment on vsts. I am using a devenv in a powershell script, but my problem is that my package is EncryptSensitiveWithPassword. and I don't know how to add the password to it.
this is what I used and it jumps a window asking for the password.
devenv "C:\Users\source\repos\LoadStageAreafromNap\LoadStageArea\LoadStageArea\LoadStageArea.sln" /build