Skip to content

Commit 87d296a

Browse files
authored
Adding Directory.Build.Targets files (#13)
* Adding targets files * Fixing mixed characters (tabs/spaces)
1 parent cb7647e commit 87d296a

File tree

10 files changed

+60
-45
lines changed

10 files changed

+60
-45
lines changed

working/templates/automationsolution/$SCRIPTNAME$_1/$SCRIPTNAME$_1.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<PackageReference Include="Skyline.DataMiner.Dev.Automation" Version="10.2.0.25" />
2121
</ItemGroup>
2222
<ProjectExtensions>
23-
<VisualStudio>
24-
<UserProperties DisLinkedXmlFile="..\$SCRIPTNAME$.xml" DisProjectType="automationScriptProject" DisLinkId="1" />
25-
</VisualStudio>
23+
<VisualStudio>
24+
<UserProperties DisLinkedXmlFile="..\$SCRIPTNAME$.xml" DisProjectType="automationScriptProject" DisLinkId="1" />
25+
</VisualStudio>
2626
</ProjectExtensions>
2727
</Project>

working/templates/automationsolution/Directory.Build.props

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
55
</PropertyGroup>
66
<ItemGroup>
7-
<AdditionalFiles Include="..\Internal\Code Analysis\stylecop.json">
7+
<AdditionalFiles Include="..\Internal\Code Analysis\stylecop.json">
88
<Link>Properties\stylecop.json</Link>
99
</AdditionalFiles>
10-
<Content Include="..\Internal\.editorconfig">
10+
<Content Include="..\Internal\.editorconfig">
1111
<Link>Properties\.editorconfig</Link>
1212
</Content>
13-
</ItemGroup>
13+
</ItemGroup>
1414
<ItemGroup>
1515
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
16-
<PrivateAssets>all</PrivateAssets>
17-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
16+
<PrivateAssets>all</PrivateAssets>
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>
1919
</ItemGroup>
2020
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<AssemblySearchPaths>$(AssemblySearchPaths);$(ReferencePath)</AssemblySearchPaths>
4+
</PropertyGroup>
5+
</Project>

working/templates/connectorsolution/Directory.Build.props

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
<CodeAnalysisRuleSet>..\Internal\Code Analysis\qaction-release.ruleset</CodeAnalysisRuleSet>
1616
</PropertyGroup>
1717
<ItemGroup>
18-
<AdditionalFiles Include="..\Internal\Code Analysis\stylecop.json">
18+
<AdditionalFiles Include="..\Internal\Code Analysis\stylecop.json">
1919
<Link>Properties\stylecop.json</Link>
2020
</AdditionalFiles>
21-
<Content Include="..\Internal\.editorconfig">
21+
<Content Include="..\Internal\.editorconfig">
2222
<Link>Properties\.editorconfig</Link>
2323
</Content>
24-
</ItemGroup>
24+
</ItemGroup>
2525
<ItemGroup>
2626
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
27-
<PrivateAssets>all</PrivateAssets>
28-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
27+
<PrivateAssets>all</PrivateAssets>
28+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2929
</PackageReference>
3030
</ItemGroup>
3131
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<AssemblySearchPaths>$(AssemblySearchPaths);$(ReferencePath)</AssemblySearchPaths>
4+
</PropertyGroup>
5+
</Project>
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
namespace Skyline.Protocol
22
{
3-
using System;
4-
using System.Collections.Generic;
5-
using System.Globalization;
6-
using System.Text;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Globalization;
6+
using System.Text;
77

8-
namespace MyExtension
9-
{
10-
public class MyClass
11-
{
12-
}
13-
}
8+
namespace MyExtension
9+
{
10+
public class MyClass
11+
{
12+
}
13+
}
1414
}

working/templates/connectorsolution/QAction_2/QAction_2.cs

+14-14
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
/// </summary>
1111
public static class QAction
1212
{
13-
/// <summary>
14-
/// The QAction entry point.
15-
/// </summary>
16-
/// <param name="protocol">Link with SLProtocol process.</param>
17-
public static void Run(SLProtocol protocol)
18-
{
19-
try
20-
{
13+
/// <summary>
14+
/// The QAction entry point.
15+
/// </summary>
16+
/// <param name="protocol">Link with SLProtocol process.</param>
17+
public static void Run(SLProtocol protocol)
18+
{
19+
try
20+
{
2121

22-
}
23-
catch (Exception ex)
24-
{
25-
protocol.Log($"QA{protocol.QActionID}|{protocol.GetTriggerParameter()}|Run|Exception thrown:{Environment.NewLine}{ex}", LogType.Error, LogLevel.NoLogging);
26-
}
27-
}
22+
}
23+
catch (Exception ex)
24+
{
25+
protocol.Log($"QA{protocol.QActionID}|{protocol.GetTriggerParameter()}|Run|Exception thrown:{Environment.NewLine}{ex}", LogType.Error, LogLevel.NoLogging);
26+
}
27+
}
2828
}

working/templates/userdefinedAPIsolution/$SCRIPTNAME$_1/$SCRIPTNAME$_1.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<PackageReference Include="Skyline.DataMiner.Dev.Automation" Version="10.3.6" />
2121
</ItemGroup>
2222
<ProjectExtensions>
23-
<VisualStudio>
24-
<UserProperties DisLinkedXmlFile="..\$SCRIPTNAME$.xml" DisProjectType="automationScriptProject" DisLinkId="1" />
25-
</VisualStudio>
23+
<VisualStudio>
24+
<UserProperties DisLinkedXmlFile="..\$SCRIPTNAME$.xml" DisProjectType="automationScriptProject" DisLinkId="1" />
25+
</VisualStudio>
2626
</ProjectExtensions>
2727
</Project>

working/templates/userdefinedAPIsolution/Directory.Build.props

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
55
</PropertyGroup>
66
<ItemGroup>
7-
<AdditionalFiles Include="..\Internal\Code Analysis\stylecop.json">
7+
<AdditionalFiles Include="..\Internal\Code Analysis\stylecop.json">
88
<Link>Properties\stylecop.json</Link>
99
</AdditionalFiles>
10-
<Content Include="..\Internal\.editorconfig">
10+
<Content Include="..\Internal\.editorconfig">
1111
<Link>Properties\.editorconfig</Link>
1212
</Content>
13-
</ItemGroup>
13+
</ItemGroup>
1414
<ItemGroup>
1515
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
16-
<PrivateAssets>all</PrivateAssets>
17-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
16+
<PrivateAssets>all</PrivateAssets>
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>
1919
</ItemGroup>
2020
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<AssemblySearchPaths>$(AssemblySearchPaths);$(ReferencePath)</AssemblySearchPaths>
4+
</PropertyGroup>
5+
</Project>

0 commit comments

Comments
 (0)