Skip to content

Commit

Permalink
Reverting build with DTE instead of devenv solution. Closes #48.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roald87 committed Apr 2, 2021
1 parent 81fe29e commit 2876e1b
Show file tree
Hide file tree
Showing 11 changed files with 185 additions and 464 deletions.
1 change: 1 addition & 0 deletions src/TcBlack/BuildTwinCatProject.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
start /wait "" %1 %2 /Project %3 /Build "Debug|TwinCAT RT (x64)" /Out build.log
120 changes: 0 additions & 120 deletions src/TcBlack/MessageFilter.cs

This file was deleted.

12 changes: 0 additions & 12 deletions src/TcBlack/NLog.config

This file was deleted.

11 changes: 8 additions & 3 deletions src/TcBlack/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,14 @@ class Options
HelpText = "Overrides the line ending of all files with UNIX' \\n."
)]
public bool UnixLineEnding { get; set; }

[Option(
Default = false,
HelpText = "Outputs build info. Has no effect in non-safe mode."
)]
public bool Verbose { get; set; }
}

[STAThread]
static void Main(string[] args)
{
Parser.Default.ParseArguments<Options>(args).WithParsed(options =>
Expand Down Expand Up @@ -150,7 +155,7 @@ static void SafeFormat(string[] filenames, Options options)
string hashBeforeFormat = string.Empty;
try
{
hashBeforeFormat = tcProject.Build().Hash;
hashBeforeFormat = tcProject.Build(options.Verbose).Hash;
}
catch(ProjectBuildFailed)
{
Expand Down Expand Up @@ -179,7 +184,7 @@ static void SafeFormat(string[] filenames, Options options)
string hashAfterFormat = string.Empty;
try
{
hashAfterFormat = tcProject.Build().Hash;
hashAfterFormat = tcProject.Build(options.Verbose).Hash;
}
catch(ProjectBuildFailed)
{
Expand Down
40 changes: 1 addition & 39 deletions src/TcBlack/TcBlack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,8 @@
<Reference Include="CommandLine, Version=2.8.0.0, Culture=neutral, PublicKeyToken=5a870481e358d379, processorArchitecture=MSIL">
<HintPath>..\packages\CommandLineParser.2.8.0\lib\net461\CommandLine.dll</HintPath>
</Reference>
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<HintPath>..\packages\NLog.4.7.5\lib\net45\NLog.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Transactions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
Expand All @@ -58,7 +50,6 @@
<Compile Include="EmptyLine.cs" />
<Compile Include="Global.cs" />
<Compile Include="Keywords.cs" />
<Compile Include="MessageFilter.cs" />
<Compile Include="ObjectDefinition.cs" />
<Compile Include="ICodeLineOperations.cs" />
<Compile Include="Program.cs" />
Expand All @@ -70,37 +61,17 @@
<Compile Include="VariableBlockEnd.cs" />
<Compile Include="VariableBlockStart.cs" />
<Compile Include="VariableDeclaration.cs" />
<Compile Include="VisualStudioInstance.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="NLog.config">
<SubType>Designer</SubType>
<None Include="BuildTwinCatProject.bat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<COMReference Include="EnvDTE">
<Guid>{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2}</Guid>
<VersionMajor>8</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
<COMReference Include="EnvDTE80">
<Guid>{1A31287A-4D7D-413E-8E32-3B374931BD89}</Guid>
<VersionMajor>8</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
<COMReference Include="stdole">
<Guid>{00020430-0000-0000-C000-000000000046}</Guid>
<VersionMajor>2</VersionMajor>
Expand All @@ -110,15 +81,6 @@
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
<COMReference Include="TCatSysManagerLib">
<Guid>{3C49D6C3-93DC-11D0-B162-00A0248C244B}</Guid>
<VersionMajor>3</VersionMajor>
<VersionMinor>3</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Loading

0 comments on commit 2876e1b

Please sign in to comment.