CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of build
XML
<?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>
by Prithvi Ramana A   Tuesday @ 10:18am
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.
 
 
by Al Gonzalez   June 16, 2011 @ 3:44pm
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
{
by Martynas   March 29, 2011 @ 5:34am
103 Views
no comments
 
XML
<Target Name="UpdateWebConfig">
   <XmlUpdate XmlFileName="$(PackageDir)\$(WebApplicationName)\web.config"
              XPath="//*/compilation/@debug"
              Value="false"/>
 </Target>
 
by Petter Wigle   September 08, 2010 @ 1:32am
198 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Collections.Specialized;
 
namespace WebControls
{
    /// <summary>
by Arjan   May 12, 2010 @ 4:34am
264 Views
no comments
 
XML
<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>
by Petter Wigle   May 09, 2010 @ 3:25am
404 Views
no comments
 
XML
<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>
by Petter Wigle   May 09, 2010 @ 3:13am
810 Views
1 comments
 
C#
/// <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
 
XML
  <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>
by ArranM   February 16, 2010 @ 2:25pm
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
by Al Gonzalez   December 08, 2009 @ 9:31pm
710 Views
no comments
 
XML
<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">
by Jim Lamb   November 03, 2009 @ 11:34am
Tags: MSBuild
397 Views
no comments
 
C#
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)
{
by Jim Lamb   October 29, 2009 @ 7:49pm
199 Views
no comments
 
C#
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
by Jim Lamb   October 28, 2009 @ 1:39pm
173 Views
no comments
 
msbuild /p:Configuration=release
msbuild /p:Configuration=debug
msbuild 
 
msbuild <Solution>.sln /target:Clean
by Josh   September 15, 2009 @ 9:12am
Tags: msbuild, build
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", `
by David R. Longnecker   September 08, 2009 @ 11:12am
687 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate