Quantcast
Channel: MSBuild forum
Viewing all 2763 articles
Browse latest View live

Kick off Coded ui Tests after TFS build on test server

$
0
0

I need to setup a tfs build to kick off at 4 in the morning, and then automatically run my codedui tests on the VM where our web application is deployed to.

I am very new to Microsoft and TFS so any help will be appreciated.

I have checked in my coded ui tests into source control

I have added a test assembly to the TFS build

As mentioned above, i am very new to this process, and i need to get this done as soon as possible before the end of this month.



Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=13.100.0.0

$
0
0
I am attempting to run a build in TFS 2018. We also have SQL Server 2016 installed on the TFS build server (which is Windows Server 2016). The first project (web project) produces the following error, and I have no idea from where this file is referenced:

2019-01-22T20:35:26.8607312Z Package:
2019-01-22T20:35:26.8608029Z   Invoking Web Deploy to generate the package with the following settings:
2019-01-22T20:35:26.8608667Z   $(LocalIisVersion) is 10
2019-01-22T20:35:26.8609527Z   $(DestinationIisVersion) is 10
2019-01-22T20:35:26.8610846Z   $(UseIis) is True
2019-01-22T20:35:26.8612479Z   $(IisUrl) is http://localhost:62327/
2019-01-22T20:35:26.8614266Z   $(IncludeIisSettings) is False
2019-01-22T20:35:26.8615630Z   $(_DeploymentUseIis) is False
2019-01-22T20:35:26.8617245Z   $(DestinationUseIis) is False
2019-01-22T20:35:26.8666548Z GenerateMsdeployManifestFiles:
2019-01-22T20:35:26.8684620Z   Generate source manifest file for Web Deploy package/publish ...
2019-01-22T20:35:27.0589951Z ##[error]C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\Web\Deploy\Microsoft.Web.Publishing.MSDeploy.Common.targets(119,5): Error MSB4018: The "SqlScriptPreprocessSqlVariables" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=13.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.SqlServer.BatchParser, Version=13.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
   at Microsoft.Web.Publishing.Tasks.SqlScriptPreprocessor.SqlScriptPreprocessSqlVariables.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Lee

Unable to save build definition in web visual designer

$
0
0

We have TFS 2018 installed on Windows Server 2016 and Visual Studio 2017. When I try to update a build definition, I get the following message:

This request expects an object in the request body, but the supplied data could not be deserialized.

I get this message whether I use Chrome, Internet Explorer, or Firefox.


Lee

MSHTML Big Error

$
0
0

SeverityCodeDescriptionProjectFileLineSuppression State
WarningCannot find wrapper assembly for type library "MSHTML". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit.Zombsroyale BR <g class="gr_ gr_8 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="8" id="8">Unoffical</g> App

It's a warning, it looks like <g class="gr_ gr_126 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="126" id="126">that :</g>http://prntscr.com/mbs9i4

It always happens when I add the MSHTML library <g class="gr_ gr_164 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="164" id="164">refrence</g>.

Installed Extensions are not showing up while Adding new task in build definition

$
0
0

Hi Team

I have installed the extensions from Marketplace and when trying to add for a new build definition, we are not able to see the newly added task. This happened for three tasks. Able to see in the list of available extensions .

"TargetFrameworkVersion" parameter is not supported by the "SignFile" task

$
0
0

hi you guys

I have a solution that includes a VSTO project.
This solution is build on a TFS build server, where it fails with the following error:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets (268): The "TargetFrameworkVersion" parameter is not supported by the "SignFile" task. Verify the parameter exists on the task, and it is a settable public instance property.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets (264): The "SignFile" task could not be initialized with its input parameters. 

I am using Visual Studio 2015 Enterprise and is able to build the project on my own pc. 

I have installed Visual Studio 2015 Enterprise on the build server as well and tried to build the project manually. This works fine.

In the build template i have specified the following parameters:
/p:GenerateProjectSpecificOutputFolder=true /p:VisualStudioVersion=14.0 /p:SkipInvalidConfigurations=true

I have installed the following to solve the issue:

Visual studio Tools for the Office system 3.0 Runtime
Microsoft Visual Studio 2010 Tools for Office Runtime (x64)
Microsoft Office Developer Tools for Visual Studio 2015
Microsoft Office Professional Plus 2016

The project is targeting .NET 4.5.2

The build server is a Windows Server 2016 version 1607

Unfortunatly i have not been able to finde much about this issue. I think it could have something to do with the Signing of the ClickOnce manifest configured in the project file, but i just can't finde a reason why this would not work using the TFS build agent.

Something that looks strange is that from the activity log i can see that the Build agent uses MSBuild from this location:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe

I have read some where that Visual Studio 2015 uses C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe

Why does my tfs build use a different version than Visual Studio and how can i change it so the tfs build use the same as Visual Studio?


 



Not able to read Registry Value for installed app using BMS .

$
0
0

I am currently creating a msi file and exe file with custom prerequisite . I wanted to check whether JRE is installed in that machine or not . 

My installation condition is like this

<UIChecks>
      <RegistryCheck RegKey="HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment" RegValue="Java7FamilyVersion" Property="Java7FamilyVersion" />
    </UIChecks>
<UIInstallConditions>
      <UIInstallCondition Type="ByPassIf" Property="Java7FamilyVersion" Operator="Ver &gt;=" Value="1.7.0_25" Message="Sample_Check" />
    </UIInstallConditions>

But in some machines , i am unable to read the Java7FamilyVersion value , it throws "Unable to read registry value error"

32 bit machine works fine , issue is seen only on 64 bit machines that too SP2 ( Server version throws error) . Windows 7 Professional edition works fine.

Your help is much appreciated.

Thanks,

Pravin

Error 1001: Install Error:Transaction Manager is not available.(Exception from HRESULT: 0x8004D01B)

$
0
0

Hi, all!

I have a 64 bit computer and I am having a problem installing a plugin. The plugin requires that I download their application framework 3.0 before I can complete the installation. The OS was Windows 10 Home but I upgraded to PRO to get the framework to install. The upgrade didn't correct the problem, though.

For some reason, every time I try to install the framework 3.0 I get this error message:

Error 1001: Transaction Manager is not available. (Exception from HRESULT: 0x8004D01B) I have tried  absolutely every thing I can think of to solve this problem. Any help would be greatly appreciated.

Thanks again,

Jim Tatum

Task host node exited prematurely. Diagnostic information may be found in files in the temporary files directory named MSBuild_*.failure.txt._School Management System____

$
0
0

this error is occurred in my front end vb.net while compiling

note I have updated from visual studio 10 to 15 then this error is going to be occur

Getting error as exited with code -1

$
0
0

Getting error as exited with code -1 when running the following macro in post build command line.

%ProgramFiles%\Microsoft SDKs\Windows\v6.0A\bin\gacutil" /i $(SolutionDir)export\test\$(TargetFileName)

Local config file that isn't available to MSBuild on a TFS build server

$
0
0

On one project our dev team is using per developer config files.  In their web config, they use this syntax:

<appSettings file="_localConfig\AppSettings.config"><add key="foo" value "bar"></appSettings>

They then have a _localConfig folder which they don't want to check into source.  The issue (which should be obvious) is the build server doesn't have access to this file, so thinks get wonky.  What I'm trying to do is apply a config transform that replaces that value with the appropriate one for the server

<appSettings xdt:Transform="Replace"><add key="foo" value= "somethingelse" />  </appSettings>      
Since things are transformed at build time, it shouldn't be trying to reference that 'local' config at all.  My problem is - this works on my test project but doesn't on the real project.  

During Build i'm told APP\web.config(0,0): Error ASPCONFIG: An error occurred loading a configuration file: Directory 'E:\agent\_work\2\s\APP\_localConfig' does not exist. Failed to start monitoring file changes.

The transform that works on one project doesn't seem to work on another.  Does anyone else use this 'config per developer' approach?  If so - how do you handle this?


Thanks much

Blake


Cannot add data to MySQL Database from website form.

$
0
0

Is there a valid reason as to why I can't add data to my SQL Database from my web application despite doing everything correctly? I'm currently training in MySQL & C# & have been using the following training video:

https://www.youtube.com/watch?v=POWm4EfU9bA

I'm using MS Visual Studio and MS SQL Server Management Studio, I'm also using Azure Web + SQL service and I have opened up the firewall allowing my client IP address through. 

Here is my coding which "apparently" adds data to my SQL database from the form located in my front end web application:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;

namespace xxxxxx
{
    public partial class WebForm1 : System.Web.UI.Page
    {
       

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack == true)
            {
                Label1.Text = ("Great job!");
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            SqlConnection stormconn = new SqlConnection("Server=tcp:xxxx.database.windows.net,1433;Initial Catalog=xxxx;Persist Security Info=False;User ID=xxxxx;Password=xxxxx;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;");
            {
                SqlCommand insert = new SqlCommand("EXEC dbo.InsertFullname @Fullname", stormconn);
                insert.Parameters.AddWithValue("@Fullname", TextBox1.Text);

                stormconn.Open();
                insert.ExecuteNonQuery();
                stormconn.Close();

                if (IsPostBack)
                {
                    TextBox1.Text = ("");
                }
            }
        }
    }
}


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="bluecitywebapplication.WebForm1" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title></head><body><form id="form1" runat="server">   <asp:Label ID="Label1" runat="server" Text="Label">Type your full name here</asp:Label><br /><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><input type="submit" value="submit" /></form>    </body></html>
/****** Object:  StoredProcedure [dbo].[InsertFullname]    Script Date: 03/02/2019 09:20:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:      <Author, , Name>
-- Create Date: <Create Date, , >
-- Description: <Description, , >
-- =============================================
ALTER PROCEDURE [dbo].[InsertFullname]
(
    -- Add the parameters for the stored procedure here
    @Fullname nchar(30)
)
AS
BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON

    -- Insert statements for procedure here
    INSERT INTO dbo.tblFullname (Fullname) VALUES (@Fullname)
	
END

This is also the last line of the diagnostics section:

The program '[17620] iisexpress.exe' has exited with code -1 (0xffffffff)

Is there any reason as to why my coding isn't doing what I'm programming it to do?
Thanks

Todd




How to generate the lib using the res file?

$
0
0

Hi,

I do the following things. Create a Manifest file called abcd.man by hand using a editor. Then I do

mc -um abcd.man

That will generate abcd.rc, abcd.h and 2 bin files

Then I do rc.exe abcd.rc which will give me abcd.res file

Then I do link.exe  /dll /noentry /machine:x64 abcd.res /OUT:abcd.dll

That will get me abcd.dll. 

Now I have a abcd.c program which has to be compiled to generate a abcd.exe. 

This abcd.exe will dynamically load abcd.dll and work. However to build abcd.c I need abcd.lib to link during build. 

So I did link.exe  /lib /machine:x64 abcd.res /OUT:abcd.lib

I am using VS2017 and linking abcd.lib but VS2017 says the lib is bad. 

Question1: What is the correct syntax to generate a lib using a res file in command line? 

Question2: Suppose I generate the lib file successfully I would like to build the exe too on the command line. Then I don't have to worry about VS2017. Is this is the correct syntax

cl.exe abcd.cs /lib=abcd.lib /OUT:abcd.exe??

Question3: I have Googled a lot and had a feeling I can totally skip all the command line operation and just using abcd.man and abcd.c go to abcd.exe straight. That would be ideal. However I could not figure out how to embed abcd.man in VS2017. Wasted lot of time. If you can answer Q3 then Q1 and Q2 I really dont care. 

Kindly advice. 

Thanks in advance


build server not finding nuget package

$
0
0

We are setting up a CI server for our UWP app and the build fails when using a system accout.

almost identical to:  https://stackoverflow.com/questions/43276107/jenkins-not-finding-a-nuget-package

I'm setting a Jenkins CI server. I got the first step to run properly:

nuget restore -NonInteractive  -ConfigFile Nuget.config -Verbosity Detailed -NoCache

That works properly, but when I want to compile the app with:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe

and ${WorkSpace}\src\Weather.App.csproj It throws this error:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\NuGet\15.0\Microsoft.NuGet.targets(178,5): error : The package HockeySDK.Core with version 4.1.6 could not be found in C:\WINDOWS\system32\config\systemprofile\.nuget\packages\. Run a NuGet package restore to download the package. [C:\Program Files (x86)\Jenkins\workspace\MyApp\Weather\Weather.App.csproj]

The weird thing is that it the Hockey package clearly exists in the path: 


a flishhorse fellow

Generate Publish Code for asp.net Website

$
0
0

We can able to publish the source code for "asp.net web application" from the command prompt with a csproj file. 

But we can not able to generate publish source code for "asp.net Website" from the command promptwithout a csproj file.

Please help!!

Thanks in advance







fatal error C1510: Cannot load language resource clui.dll.

$
0
0

Hello,

When compiling a big project 64 bit using VS 2012, getting following error

fatal error C1510: Cannot load language resource clui.dll.

Can't seem to find any solutions. The Debug build works fine.

The Development server is Window  7 64 bit, having 12 GB of memory and 24 GB of virtual memory.

Please advice.

Thanks,

- Srini

umdf2 sample project fails to build

$
0
0

I followed this article

https://docs.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/writing-a-umdf-driver-based-on-a-template

and when I build the following error is shown.

Project is not up-to-date: 'C:\Users\User\source\repos\UmdfDriver\UmdfDriver\x64\Debug\UmdfDriver.tlog\UmdfDriver.lastbuildstate' file is missing.


IBM infospehere information server and TFS plugin for eclipse

$
0
0

HI

We are trying to use TEAM Foundation Server 2017 update 3 RTM for source management of IBM infospehere datajobs. We have installed TFS plugin for eclipse version 14.0.3 on IBM Infosphere Information Server version 11.5.

The issue I am facing is I am not able to connect TFS from team explorer window when I choose https protocol. When I choose http along with port number it is connecting. I am getting below error while using https 

"windows sockets error: 0 recv failed"

I imported TFS certificate into JRE cacerts also, but it didn't fix the issue

Thanks 



MSB3073:The command "copy XXXXXXXXXXXXXXXXXXXXXX"

$
0
0
I'm geeting this error when im trying to post build event for code virtualizer.

MSBuild always rebuilds project due to .btproj.user file being re-created every build

$
0
0

How can I change MSBuild configuration not to do this step (or do it before the build is done).

Using BizTalk 2016 and Visual Studio 2015.

We passed year 2000 19 years ago. Please fix this, or we will never experience year 3000 (because we are  re-building projects all the time).

Viewing all 2763 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>