Format:
Recent snippets matching tags of build
<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="PublishWeb" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" /> <UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.Tasks.dll"/> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <ClassLibraryOutputDirectory>bin$(Configuration)</ClassLibraryOutputDirectory> <WebProjectFile>$(ProjectFolder)\$(ProjectFile)</WebProjectFile> </PropertyGroup>
12 Views
no comments
copy $(ProjectDir)\..\{path to file} $(TargetDir)
rem add '1>nul' to NOT display any messages from the copy.
rem add '2>nul' to NOT fail the build and to NOT display any error messages from the copy.
120 Views
no comments
package juddiv3admin.juddiv3; import java.util.ArrayList; import java.util.List; import juddiv3admin.gui.GUI; import org.apache.juddi.api_v3.*; import org.uddi.api_v3.*; public class QueryBuilder {
103 Views
no comments
<Target Name="UpdateWebConfig"> <XmlUpdate XmlFileName="$(PackageDir)\$(WebApplicationName)\web.config" XPath="//*/compilation/@debug" Value="false"/> </Target>
198 Views
no comments
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Collections.Specialized; namespace WebControls { /// <summary>
264 Views
no comments
<PropertyGroup> <SolutionRootDir>$(MSBuildProjectDirectory)\..</SolutionRootDir> <ApplicationName>MyApp</ApplicationName> <WebApplicationName>$(ApplicationName).Web</WebApplicationName> <MSBuildCommunityTasksPath>$(SolutionRootDir)\BuildScripts\MSBuildCommunityTasks</MSBuildCommunityTasksPath> <WebProject>$(SolutionRootDir)\$(WebApplicationName)\$(WebApplicationName).csproj</WebProject> <PackageDir>$(SolutionRootDir)\Package</PackageDir> <Configuration>Release</Configuration> </PropertyGroup>
404 Views
no comments
<PropertyGroup> <SolutionRootDir>$(MSBuildProjectDirectory)\..</SolutionRootDir> <ApplicationName>MyApp</ApplicationName> <Version>0.0.1.0</Version> <Company>Active Solution AB</Company> <Copyright>Copyright © Active Solution AB 2010</Copyright> </PropertyGroup> <PropertyGroup Condition="'$(BUILD_NUMBER)' != ''"> <Version>$(BUILD_NUMBER)</Version> </PropertyGroup>
810 Views
1 comments
/// <summary> /// Return all properties from a type up to a specified base type in the inheritance hierarchy /// </summary> /// <param name="type">Type that will be examined</param> /// <param name="baseType">Where to stop in the inheritance hierarchy. Must be a type that first parameter inherits from /// </param> /// <returns>A list of all found properties</returns> public static List<PropertyInfo> GetAllProperties(Type type, Type baseType) { List<PropertyInfo> properties = new List<PropertyInfo>();
438 Views
no comments
<Target Name="AfterMerge"> <ItemGroup> <JsFiles Include="$(TempBuildDir)\Scripts\infinitecarousel.js;$(TempBuildDir)\Scripts\jquery.autocomplete.js;$(TempBuildDir)\Scripts\core.js"/> <CssFiles Include="$(TempBuildDir)\Content\reset.css;$(TempBuildDir)\Content\infinitecarousel.css;$(TempBuildDir)\Content\Site.css" /> </ItemGroup> <ReadLinesFromFile File="%(JsFiles.Identity)"> <Output TaskParameter="Lines" ItemName="jsLines"/> </ReadLinesFromFile>
1775 Views
no comments
Sub ToggleMvcBuildViews() DTE.ExecuteCommand("Project.UnloadProject") DTE.ExecuteCommand("OtherContextMenus.StubProject.EditProjectFile") Dim wasSetToTrue As Boolean = SetMvcBuildView(True) Dim wasSetToFalse As Boolean If Not wasSetToTrue Then wasSetToFalse = SetMvcBuildView(False) End If
710 Views
no comments
<Import Project="$(MSBuildExtensionsPath32)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" /> <ItemGroup> <SourceFiles Include="$(SolutionDir)**/*.*" Exclude="$(SolutionDir)Package/**/*.*;$(SolutionDir)**/bin/**/*.*;$(SolutionDir)**/obj/**/*.*;$(SolutionDir)**/internal.proj;$(SolutionDir)**/*.*scc;$(SolutionDir)$(SolutionName).zip"> <Visible>False</Visible> </SourceFiles> </ItemGroup> <Target Name="AfterBuild" Condition="'$(Configuration)'=='Release'" Inputs="@(SourceFiles)" Outputs="$(SolutionDir)$(SolutionName).zip">
397 Views
no comments
using Microsoft.TeamFoundation.Build.Client; // enumerate the build controllers and agents for the specified project collection var tfs = TeamFoundationServerFactory.GetServer("http://tfserver:8080/tfs/DefaultCollection"); IBuildServer buildServer = (IBuildServer)tfs.GetService(typeof(IBuildServer)); var buildControllers = (IEnumerable<IBuildController>)buildServer.QueryBuildControllers(true); foreach (IBuildController controller in buildControllers) {
199 Views
no comments
using Microsoft.TeamFoundation.Client; using Microsoft.TeamFoundation.Build.Client; namespace Microsoft.TeamFoundation.Sample { class Program { static void Main(string[] args) { // replace this string with the URI to your team project collection
173 Views
no comments
msbuild /p:Configuration=release msbuild /p:Configuration=debug msbuild msbuild <Solution>.sln /target:Clean
220 Views
no comments
properties {
# **************** CONFIGURE ****************
$solution_name = "Framework"
$test_library = "$solution_name.Test.dll"
$libraries_to_merge = "antlr3.runtime.dll", `
"ajaxcontroltoolkit.dll", `
"Castle.DynamicProxy2.dll", `
"Castle.Core.dll", `
687 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
