.
↧
New Post: DO NOT DISCUSS HERE - WE HAVE MOVED
↧
New Post: Error - 'The "Msbuild.ExtensionPack.Xml.XmlFile" task could not be loaded from the assembly' while using MSbuild.ExtensionPack (version 3.5.15.0) in Share Point 2010 environment.
I want to read xml file with MSBuild.ExtensionPack.Xml.XmlFile command. I had used below xml file.
But my goal is to run this command in .net framework 3.5. Could you please suggest ?
<List>
<ListItem>
<Name>Announcements</Name>
</ListItem>
<ListItem>
<Name>DiscussionTest1</Name>
</ListItem>
</List>
And execution file is as below.<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Simple Test" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
<!-- Required Import to defined Test Servers -->
<Import Project="TestServerDefinition.testproj" Condition="'$(EmbeddedTest)'==''" />
<!-- Required Import to use MSBuild Community Tasks -->
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" Condition="'$(EmbeddedTest)'==''" />
<Import Project="$(MSBuildExtensionsPath)\ExtensionPack\MSBuild.ExtensionPack.tasks"/>
<Target Name="Simple Test">
<MSBuild.ExtensionPack.Xml.XmlFile TaskAction="ReadElements" ReadChildrenToMetadata="true" File="TestCases.xml" XPath="List/ListItem">
<Output TaskParameter="Elements" ItemName="ListItem" />
</MSBuild.ExtensionPack.Xml.XmlFile>
<RecordComment Comment="%(ListItem.Name)" />
</Target>
</Project>
While execute above file with command prompt it gives an error like below. As i need this command with .net 3.5, so i had installed MSBuild ExtensionPack 3.5.15.0 in my SharePoint 2010 machine. However this commands works fine with MSbuild ExtensionPack 4.0.9.0 in SharePoint 2013 machine at where i had .net framework 4.0.But my goal is to run this command in .net framework 3.5. Could you please suggest ?
Target: Simple Test
The "MSBuild.ExtensionPack.Xml.XmlFile" task could not be loaded from the assembly \ExtensionPack\4.0\Msbuild.ExtensionPack.dll. Could not load file or assembly 'file:///C:\ExtensionPack\4.0\MSBuild.ExtensionPack.dll' or one of its dependencies.
The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.
MSBUILD : error MSB4017: The build was aborted because of an unexpected logger failure.
↧
↧
New Post: Sql2008.Database Restore fails with 'RestoreContainer::ValidateTargetForCreation'
Figure out how easily restore SQL database without facing any trouble. Go through this tutorial which suggests you right way to recover SQL database: - http://www.sqlrepairtool.org/sql-2008-database-restore.html
↧
New Post: Need some help with MSBuild.ExtensionPack.Xml.XmlFile
how would you do it if you wanted to update the "DeployTag" from the below line?
<SqlCmdVariable Include="DeployTag">
<SqlCmdVariable Include="DeployTag">
↧
New Post: MSBuild.ExtensionPack.VisualStudio.VB6 will not terminate correctly on windows server 2012 R2
Hi,
Running a msbuild script from Teamcity with a Teamcity agent on Windows 2012 r2.
In the script I call <MSBuild.ExtensionPack.VisualStudio.VB6 TaskAction="Build" Projects="@(ProjectsToBuild)"/>
This will only build one project, but when it starts its seems to hang - VB6 is started as a process, but i dont know whats happening in the background. It does not terminate - so I have to stop the process manually.
Any idea how to get around this problem?
MSBuild script
Running a msbuild script from Teamcity with a Teamcity agent on Windows 2012 r2.
In the script I call <MSBuild.ExtensionPack.VisualStudio.VB6 TaskAction="Build" Projects="@(ProjectsToBuild)"/>
This will only build one project, but when it starts its seems to hang - VB6 is started as a process, but i dont know whats happening in the background. It does not terminate - so I have to stop the process manually.
Any idea how to get around this problem?
MSBuild script
<Target Name="Build Invoice VB6">
<ItemGroup>
<ProjectsToBuild1 Include="$(WorkDir)\VB6\Invoice\Invoice.vbp">
<OutDir>$(InvoiceDir)</OutDir>
<!-- Note the special use of ChgPropVBP metadata to change project properties at Build Time -->
<ChgPropVBP>AutoIncrementVer=0;MajorVer=$(MajorVer);MinorVer=$(MinorVer);RevisionVer=$(Revision);</ChgPropVBP>
</ProjectsToBuild>
</ItemGroup>
<!-- Build a collection of VB6 projects -->
<MSBuild.ExtensionPack.VisualStudio.VB6 TaskAction="Build" Projects="@(ProjectsToBuild)"/>
</Target>
Output in TC:[22:18:04][Build All] CallTarget (51s)
[22:18:04][CallTarget] Build Invoice VB6 (51s)
[22:18:04][Build Invoice VB6] MSBuild.ExtensionPack.VisualStudio.VB6 (51s)
[22:18:04][MSBuild.ExtensionPack.VisualStudio.VB6] Building Projects Collection: 1 projects
[22:18:04][MSBuild.ExtensionPack.VisualStudio.VB6] START - Changing Properties VBP
[22:18:04][MSBuild.ExtensionPack.VisualStudio.VB6] AutoIncrementVer -> New value: 0
[22:18:04][MSBuild.ExtensionPack.VisualStudio.VB6] MajorVer -> New value: 3
[22:18:04][MSBuild.ExtensionPack.VisualStudio.VB6] MinorVer -> New value: 5
[22:18:04][MSBuild.ExtensionPack.VisualStudio.VB6] RevisionVer -> New value: 495
[22:18:04][MSBuild.ExtensionPack.VisualStudio.VB6] END - Changing Properties VBP
[22:18:04][MSBuild.ExtensionPack.VisualStudio.VB6] Running C:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.exe /MAKE /OUT "E:\TeamCity\buildAgent\work\cdf263a9d594f0b8\VB6\Invoice\Invoice.vbp.log" "E:\TeamCity\buildAgent\work\cdf263a9d594f0b8\VB6\Invoice\Invoice.vbp" /outdir "E:\TeamCity\buildAgent\work\cdf263a9d594f0b8\Builds\Jobmatch\Invoice\"
↧
↧
New Post: MSBuild.ExtensionPack.VisualStudio.VB6 will not terminate correctly on windows server 2012 R2
I am not sure if anyone has made any progress here, I had the same issue on windows 2012; I downloaded a copy of the source code for the vb6 task from the 4.0.10 release.
I temporarily removed the redirection of stdout and sterr, the vb6 compiler does not throw anything much anyways as long as a log file is provided (which the plugin specified by default).
Extract looks like this
I guess this will be my workaround while this is officially supported on Windows 2012.
Regards
I temporarily removed the redirection of stdout and sterr, the vb6 compiler does not throw anything much anyways as long as a log file is provided (which the plugin specified by default).
Extract looks like this
proc.StartInfo.FileName = this.VB6Path;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.RedirectStandardOutput = false;
proc.StartInfo.RedirectStandardError = false;
I also removed related code that would read the streams to the end and post as Log.Message or Log.Error; after that I reran my build and now VB6 does not hang.I guess this will be my workaround while this is officially supported on Windows 2012.
Regards
↧
New Post: Need some help with MSBuild.ExtensionPack.Xml.XmlFile
↧
New Post: MSBuild.ExtensionPack.VisualStudio.VB6 will not terminate correctly on windows server 2012 R2
↧
Released: March 2015 (Mar 23, 2015)
Available from GitHub
here
↧
↧
Created Release: March 2015 (Mar 23, 2015)
Available from GitHub here
↧
Reviewed: March 2015 (Apr 18, 2016)
Rated 4 Stars (out of 5) - asdasdsdasdasdas
↧