-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hashing content of macrodef and caching the generated dll. No need to…
… recompile it each time unless the macro changes. VS2010 solution. Some tests for handling macro redefinitions.
- Loading branch information
1 parent
da8ca12
commit 0bf40c4
Showing
10 changed files
with
224 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
build | ||
build | ||
*.user | ||
*.ncb | ||
*.suo | ||
[Bb]in | ||
[Db]ebug*/ | ||
obj/ | ||
[Rr]elease*/ | ||
_ReSharper*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{0ACD9902-48B2-4C19-9653-4964A71ADC2A}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<NoStandardLibraries>false</NoStandardLibraries> | ||
<AssemblyName>macrodef</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<RootNamespace>macrodef</RootNamespace> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="NAnt.Core"> | ||
<HintPath>lib\NAnt.Core.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include=".gitignore" /> | ||
<Content Include="COPYING.txt" /> | ||
<Content Include="doc\images\arrow.gif" /> | ||
<Content Include="doc\images\bullet.gif" /> | ||
<Content Include="doc\images\logo.gif" /> | ||
<Content Include="doc\style.css" /> | ||
<Content Include="README.txt" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="default.build" /> | ||
<None Include="test\duplicate-redefinition.build" /> | ||
<None Include="test\duplicate.build" /> | ||
<None Include="test\tests.build" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="src\AssemblyInfo.cs" /> | ||
<Compile Include="src\AssertFailTask.cs" /> | ||
<Compile Include="src\MacroAttribute.cs" /> | ||
<Compile Include="src\MacroDefInvocation.cs" /> | ||
<Compile Include="src\MacroDefSequential.cs" /> | ||
<Compile Include="src\MacroDefTask.cs" /> | ||
<Compile Include="src\MacroElement.cs" /> | ||
<Compile Include="src\SimpleCSharpCompiler.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" /> | ||
<ProjectExtensions> | ||
<VisualStudio AllowExistingFolder="true" /> | ||
</ProjectExtensions> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual Studio 2010 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "macrodef", "macrodef.csproj", "{0ACD9902-48B2-4C19-9653-4964A71ADC2A}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{0ACD9902-48B2-4C19-9653-4964A71ADC2A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{0ACD9902-48B2-4C19-9653-4964A71ADC2A}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{0ACD9902-48B2-4C19-9653-4964A71ADC2A}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{0ACD9902-48B2-4C19-9653-4964A71ADC2A}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" ?> | ||
<project name="duplicate-redefinition-test" default="duplicate-redefinition-test" xmlns="http://nant.sf.net/schemas/nant.xsd"> | ||
<loadtasks assembly="../build/Macrodef.dll" verbose="true" /> | ||
|
||
<target name="duplicate-redefinition-test"> | ||
<nant buildfile="duplicate.build" /> | ||
<macrodef name="duplicate-test"> | ||
<sequential> | ||
<echo message="Do something different macro, for duplicate redefinition test." /> | ||
</sequential> | ||
</macrodef> | ||
</target> | ||
|
||
</project> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" ?> | ||
<project name="duplicate-test" xmlns="http://nant.sf.net/schemas/nant.xsd"> | ||
<loadtasks assembly="../build/Macrodef.dll" verbose="true" /> | ||
|
||
<macrodef name="duplicate-test"> | ||
<sequential> | ||
<echo message="Do nothing macro, for duplicate test." /> | ||
</sequential> | ||
</macrodef> | ||
</project> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters