Skip to content

Commit

Permalink
Python Tools for Visual Studio - initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dino Viehland committed Mar 9, 2011
0 parents commit 00d974b
Show file tree
Hide file tree
Showing 1,343 changed files with 294,908 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Build/AssemblyInfoCommon.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// <copyright>
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>

#include "stdafx.h"

using namespace System;
using namespace System::Reflection;
using namespace System::Runtime::CompilerServices;
using namespace System::Runtime::InteropServices;
using namespace System::Security::Permissions;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.

[assembly:AssemblyCompanyAttribute("Microsoft")];
[assembly:AssemblyProductAttribute("WCS")];
[assembly:AssemblyCopyrightAttribute("Copyright © Microsoft 2010")];
[assembly:AssemblyTrademarkAttribute("")];
[assembly:AssemblyCultureAttribute("")];

[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];
18 changes: 18 additions & 0 deletions Build/AssemblyInfoCommon.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// <copyright>
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// The following assembly information is common to all Technical Computing Workbench
// assemblies.
// If you get compiler errors CS0579, "Duplicate '<attributename>' attribute", check your
// Properties\AssemblyInfo.cs file and remove any lines duplicating the ones below.
// (See also AssemblyVersion.cs in this same directory.)
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("WCS")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
24 changes: 24 additions & 0 deletions Build/AssemblyVersion.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include "stdafx.h"

using namespace System;
using namespace System::Reflection;
using namespace System::Runtime::CompilerServices;

//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the value or you can default the Revision and Build Numbers
// by using the '*' as shown below

[assembly:AssemblyVersionAttribute("1.0.4057.000")];
[assembly:AssemblyFileVersionAttribute("1.0.4057.000")];
15 changes: 15 additions & 0 deletions Build/AssemblyVersion.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// <copyright>
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// The following assembly information is common to all Technical Computing Workbench
// assemblies.
// If you get compiler errors CS0579, "Duplicate '<attributename>' attribute", check your
// Properties\AssemblyInfo.cs file and remove any lines duplicating the ones below.
// (See also AssemblyInfoCommon.cs in this same directory.)
[assembly: AssemblyVersion("0.7.4100.000")]
[assembly: AssemblyFileVersion("0.7.4100.000")]
17 changes: 17 additions & 0 deletions Build/Build.tasks
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!--<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll" TaskName="Microsoft.Sdc.Tasks.File.DeleteFiles"/>
<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll" TaskName="Microsoft.Sdc.Tasks.File.GetFiles"/>
<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll" TaskName="Microsoft.Sdc.Tasks.File.RegEx"/>-->
<UsingTask AssemblyFile="$(TasksPath)BuildTasks.dll" TaskName="Microsoft.Sdc.Tasks.File.Replace"/>

<!--<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll" TaskName="Microsoft.Sdc.Tasks.VersionNumber.CreateSourceFiles"/>
<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll" TaskName="Microsoft.Sdc.Tasks.VersionNumber.Load"/>
<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll" TaskName="Microsoft.Sdc.Tasks.VersionNumber.LoadFileVersion"/>
<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll" TaskName="Microsoft.Sdc.Tasks.VersionNumber.Parse"/>
<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll" TaskName="Microsoft.Sdc.Tasks.VersionNumber.SplitBuildNumber"/>-->
<UsingTask AssemblyFile="$(TasksPath)BuildTasks.dll" TaskName="Microsoft.Sdc.Tasks.VersionNumber.Update"/>
<!--<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll" TaskName="Microsoft.Sdc.Tasks.VersionNumber.VSSUpdate"/>-->

</Project>
Binary file added Build/BuildTasks.dll
Binary file not shown.
Binary file added Build/BuildTasks.pdb
Binary file not shown.
42 changes: 42 additions & 0 deletions Build/CodeCoverage.proj
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" InitialTargets="">

<Target Name="MessagesCC">
<Message Text="Code Coverage Build"></Message>
<Message Text="%24(TemplateFile) = %22$(TemplateFile)%22"></Message>
<Message Text="%24(OutputFile) = %22$(OutputFile)%22"></Message>
</Target>

<PropertyGroup>
<BuildRoot Condition="'$(BuildRoot)'==''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dirs.proj))</BuildRoot>
<GenCCItemsCommand>&quot;$(BuildRoot)\Tools\bin\GenCodeCoverageItems.exe&quot;</GenCCItemsCommand>
<TemplateFile>&quot;$(BuildRoot)\Build\CodeCoverage\codecoverage.testsettings&quot;</TemplateFile>
<OutputFile>&quot;$(BuildRoot)\Build\CodeCoverage\outputcodecoverage.testsettings&quot;</OutputFile>
</PropertyGroup>

<PropertyGroup>
<!--Team build uses this-->
<OutPath Condition="'$(OutDir)' != ''">$(OutDir)\</OutPath>
<!--Local build uses this-->
<OutPath Condition="'$(OutDir)' == ''">$(OutputPath)</OutPath>
</PropertyGroup>

<Target Name="CodeCoverage">
<CallTarget Targets="MessagesCC" />
<!--Something needs to be done here for purging output directories before local builds.-->
<MSBuild Projects="@(ProjectFile)" Targets="Build"/>
<MSBuild Projects="@(SequencedProjectFile)" Targets="Build"/>
<CallTarget Targets="GenCodeCoverageSettings" />
</Target>

<Target Name="GenCodeCoverageSettings">
<Message Text="%24(OutPath) = %22$(OutPath)%22"></Message>
<Message Text="%24(OutDir) = %22$(OutDir)%22"></Message>
<Message Text="%24(OutputPath) = %22$(OutputPath)%22"></Message>
<Message Text="%24(UserHomePath) = %22$(UserHomePath)%22"></Message>

<Exec Command="$(GenCCItemsCommand) /t:$(TemplateFile) /o:$(OutputFile) /p:&quot;$(MSBuildProjectFullPath)&quot; /v /a:&quot;$(OutPath)&quot; "
ContinueOnError="false"/>
</Target>

</Project>
36 changes: 36 additions & 0 deletions Build/CodeCoverage/codecoverage.testsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestSettings name="wcs codecoverage" id="d0bbcea6-c10e-4189-b125-8b5630a1f510" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Description>These are code coverage test settings for a local test run</Description>
<Execution>
<Timeouts runTimeout="3600000" testTimeout="300000" />
<TestTypeSpecific>
<UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b">
<AssemblyResolution>
<TestDirectory useLoadContext="true" />
</AssemblyResolution>
</UnitTestRunConfig>
<WebTestRunConfiguration testTypeId="4e7599fa-5ecb-43e9-a887-cd63cf72d207">
<Browser name="Internet Explorer 7.0">
<Headers>
<Header name="User-Agent" value="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)" />
<Header name="Accept" value="*/*" />
<Header name="Accept-Language" value="{{$IEAcceptLanguage}}" />
<Header name="Accept-Encoding" value="GZIP" />
</Headers>
</Browser>
</WebTestRunConfiguration>
</TestTypeSpecific>
<AgentRule name="LocalMachineDefaultRole">
<DataCollectors>
<DataCollector uri="datacollector://microsoft/CodeCoverage/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.CodeCoverage.CoveragePlugIn, Microsoft.VisualStudio.QualityTools.Plugins.CodeCoverage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Code Coverage">
<Configuration>
<CodeCoverage keyFile="..\TCWB.snk" xmlns="">
<Regular>
</Regular>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
</AgentRule>
</Execution>
</TestSettings>
13 changes: 13 additions & 0 deletions Build/CodeCoverage/default.testsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestSettings
id="e4a89088-cf93-404a-8b36-f4bd08faccc4"
name="default"

xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Description>These are default test settings for a local test run</Description>
<Execution>
<AgentRule name="LocalMachineDefaultRole">

</AgentRule>
</Execution>
</TestSettings>
28 changes: 28 additions & 0 deletions Build/Common.Build.Traversal.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!-- Ensures that if this file changes it forces a rebuild -->
<PropertyGroup>
<MSBuildAllProjects>
$(MSBuildAllProjects);$(TargetsPath)\Common.Build.Traversal.targets
</MSBuildAllProjects>
</PropertyGroup>

<Target Name="Rebuild">
<MSBuild Projects="@(ProjectFile)" Targets="Clean"/>
<MSBuild Projects="@(SequencedProjectFile)" Targets="Clean"/>
<MSBuild Projects="@(ProjectFile)" Targets="Build"/>
<MSBuild Projects="@(SequencedProjectFile)" Targets="Build"/>
</Target>

<Target Name="Build">
<MSBuild Projects="@(ProjectFile)" Targets="Build"/>
<MSBuild Projects="@(SequencedProjectFile)" Targets="Build"/>
</Target>

<Target Name="Clean">
<MSBuild Projects="@(ProjectFile)" Targets="Clean"/>
<MSBuild Projects="@(SequencedProjectFile)" Targets="Clean"/>
</Target>

</Project>
Loading

0 comments on commit 00d974b

Please sign in to comment.