Skip to content

Commit 25c5216

Browse files
committed
Switched most .NET Core projects to .NET Standard and make a NuGte package for the RepositoryAPI library.
1 parent a8c1ef4 commit 25c5216

10 files changed

Lines changed: 134 additions & 111 deletions

File tree

CodeGen.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
140140
HowTo.txt = HowTo.txt
141141
License.txt = License.txt
142142
Documentation\Release Procedure.txt = Documentation\Release Procedure.txt
143+
RepositoryAPI.nuspec = RepositoryAPI.nuspec
143144
SendMsiToDownloads.bat = SendMsiToDownloads.bat
144145
SignFile.bat = SignFile.bat
145146
signfile.ps1 = signfile.ps1

CodeGenEngine/CodeGenerator.dbl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ namespace CodeGen.Engine
110110
;;Is CODEGEN_TPLDIR set in the environment?
111111
data templateFolder = Environment.GetEnvironmentVariable("CODEGEN_TPLDIR")
112112

113-
.ifndef D_NETCORE
113+
.ifndef D_NETSTANDARD
114114

115115
if (String.IsNullOrWhiteSpace(templateFolder))
116116
begin
@@ -141,7 +141,7 @@ namespace CodeGen.Engine
141141
context.Author = authorName
142142
end
143143

144-
.ifndef D_NETCORE
144+
.ifndef D_NETSTANDARD
145145
if (String.IsNullOrWhiteSpace(context.Author))
146146
begin
147147
;;Look in the registry for the value set by InstallShield
@@ -168,7 +168,7 @@ namespace CodeGen.Engine
168168
context.Company = companyName
169169
end
170170

171-
.ifndef D_NETCORE
171+
.ifndef D_NETSTANDARD
172172
if (String.IsNullOrWhiteSpace(context.Company))
173173
begin
174174
;;No, look in the registry for the value set by InstallShield

DotNetCore/CodeGen/CodeGen.synproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
1313
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
1414
</PropertyGroup>
15-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16-
<OutputPath />
17-
</PropertyGroup>
1815
<ItemGroup>
1916
<PackageReference Include="NAudio">
2017
<Version>2.2.1</Version>

DotNetCore/CodeGenCore.sln

Lines changed: 77 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,77 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 17
4-
VisualStudioVersion = 17.2.32630.192
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{BBD0F5D1-1CC4-42FD-BA4C-A96779C64378}") = "RepositoryAPI", "RepositoryAPI\RepositoryAPI.synproj", "{7F590216-7DA0-4662-988B-166C12A0CE1A}"
7-
EndProject
8-
Project("{BBD0F5D1-1CC4-42FD-BA4C-A96779C64378}") = "MethodCatalogAPI", "MethodCatalogAPI\MethodCatalogAPI.synproj", "{D3564B19-4E1F-4C84-958C-1443FDAECF87}"
9-
EndProject
10-
Project("{BBD0F5D1-1CC4-42FD-BA4C-A96779C64378}") = "CodeGenEngine", "CodeGenEngine\CodeGenEngine.synproj", "{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}"
11-
EndProject
12-
Project("{BBD0F5D1-1CC4-42FD-BA4C-A96779C64378}") = "CodeGen", "CodeGen\CodeGen.synproj", "{7FCB9197-372F-4C85-AB05-7765EA2BF067}"
13-
EndProject
14-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7129ECAC-23AE-4B93-BF1E-AC88ADC4198A}"
15-
ProjectSection(SolutionItems) = preProject
16-
CodeGenEnvironment.cmd = CodeGenEnvironment.cmd
17-
MakeLinuxDistro.bat = MakeLinuxDistro.bat
18-
MakeWindowsDistro.bat = MakeWindowsDistro.bat
19-
setup.bat = setup.bat
20-
EndProjectSection
21-
EndProject
22-
Project("{BBD0F5D1-1CC4-42FD-BA4C-A96779C64378}") = "HarmonyCoreExtensions", "HarmonyCoreExtensions\HarmonyCoreExtensions.synproj", "{1F68B271-629B-4C92-972F-AD384A91266C}"
23-
EndProject
24-
Project("{BBD0F5D1-1CC4-42FD-BA4C-A96779C64378}") = "HarmonyCoreCodeGen.Core", "HarmonyCoreCodeGen.Core\HarmonyCoreCodeGen.Core.synproj", "{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}"
25-
EndProject
26-
Global
27-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
28-
Debug|Any CPU = Debug|Any CPU
29-
Debug|x86 = Debug|x86
30-
Release|Any CPU = Release|Any CPU
31-
Release|x86 = Release|x86
32-
EndGlobalSection
33-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
34-
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
35-
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Debug|Any CPU.Build.0 = Debug|Any CPU
36-
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Debug|x86.ActiveCfg = Debug|x86
37-
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Debug|x86.Build.0 = Debug|x86
38-
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Release|Any CPU.ActiveCfg = Release|Any CPU
39-
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Release|Any CPU.Build.0 = Release|Any CPU
40-
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Release|x86.ActiveCfg = Release|x86
41-
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Release|x86.Build.0 = Release|x86
42-
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
43-
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Debug|Any CPU.Build.0 = Debug|Any CPU
44-
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Debug|x86.ActiveCfg = Debug|x86
45-
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Debug|x86.Build.0 = Debug|x86
46-
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Release|Any CPU.ActiveCfg = Release|Any CPU
47-
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Release|Any CPU.Build.0 = Release|Any CPU
48-
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Release|x86.ActiveCfg = Release|x86
49-
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Release|x86.Build.0 = Release|x86
50-
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
51-
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Debug|Any CPU.Build.0 = Debug|Any CPU
52-
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Debug|x86.ActiveCfg = Debug|x86
53-
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Debug|x86.Build.0 = Debug|x86
54-
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Release|Any CPU.ActiveCfg = Release|Any CPU
55-
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Release|Any CPU.Build.0 = Release|Any CPU
56-
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Release|x86.ActiveCfg = Release|x86
57-
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Release|x86.Build.0 = Release|x86
58-
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
59-
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Debug|Any CPU.Build.0 = Debug|Any CPU
60-
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Debug|x86.ActiveCfg = Debug|Any CPU
61-
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Debug|x86.Build.0 = Debug|Any CPU
62-
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Release|Any CPU.ActiveCfg = Release|Any CPU
63-
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Release|Any CPU.Build.0 = Release|Any CPU
64-
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Release|x86.ActiveCfg = Release|Any CPU
65-
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Release|x86.Build.0 = Release|Any CPU
66-
{1F68B271-629B-4C92-972F-AD384A91266C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
67-
{1F68B271-629B-4C92-972F-AD384A91266C}.Debug|Any CPU.Build.0 = Debug|Any CPU
68-
{1F68B271-629B-4C92-972F-AD384A91266C}.Debug|x86.ActiveCfg = Debug|x86
69-
{1F68B271-629B-4C92-972F-AD384A91266C}.Debug|x86.Build.0 = Debug|x86
70-
{1F68B271-629B-4C92-972F-AD384A91266C}.Release|Any CPU.ActiveCfg = Release|Any CPU
71-
{1F68B271-629B-4C92-972F-AD384A91266C}.Release|Any CPU.Build.0 = Release|Any CPU
72-
{1F68B271-629B-4C92-972F-AD384A91266C}.Release|x86.ActiveCfg = Release|x86
73-
{1F68B271-629B-4C92-972F-AD384A91266C}.Release|x86.Build.0 = Release|x86
74-
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
75-
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Debug|Any CPU.Build.0 = Debug|Any CPU
76-
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Debug|x86.ActiveCfg = Debug|x86
77-
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Debug|x86.Build.0 = Debug|x86
78-
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Release|Any CPU.ActiveCfg = Release|Any CPU
79-
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Release|Any CPU.Build.0 = Release|Any CPU
80-
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Release|x86.ActiveCfg = Release|x86
81-
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Release|x86.Build.0 = Release|x86
82-
EndGlobalSection
83-
GlobalSection(SolutionProperties) = preSolution
84-
HideSolutionNode = FALSE
85-
EndGlobalSection
86-
GlobalSection(ExtensibilityGlobals) = postSolution
87-
SolutionGuid = {7ECBF38A-3A48-42C1-B4AD-9E0DCE3BAE8E}
88-
EndGlobalSection
89-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.2.32630.192
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{BBD0F5D1-1CC4-42FD-BA4C-A96779C64378}") = "RepositoryAPI", "RepositoryAPI\RepositoryAPI.synproj", "{7F590216-7DA0-4662-988B-166C12A0CE1A}"
7+
EndProject
8+
Project("{BBD0F5D1-1CC4-42FD-BA4C-A96779C64378}") = "MethodCatalogAPI", "MethodCatalogAPI\MethodCatalogAPI.synproj", "{D3564B19-4E1F-4C84-958C-1443FDAECF87}"
9+
EndProject
10+
Project("{BBD0F5D1-1CC4-42FD-BA4C-A96779C64378}") = "CodeGenEngine", "CodeGenEngine\CodeGenEngine.synproj", "{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}"
11+
EndProject
12+
Project("{BBD0F5D1-1CC4-42FD-BA4C-A96779C64378}") = "CodeGen", "CodeGen\CodeGen.synproj", "{7FCB9197-372F-4C85-AB05-7765EA2BF067}"
13+
EndProject
14+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7129ECAC-23AE-4B93-BF1E-AC88ADC4198A}"
15+
ProjectSection(SolutionItems) = preProject
16+
CodeGenEnvironment.cmd = CodeGenEnvironment.cmd
17+
MakeLinuxDistro.bat = MakeLinuxDistro.bat
18+
MakeWindowsDistro.bat = MakeWindowsDistro.bat
19+
..\RepositoryAPI.nuspec = ..\RepositoryAPI.nuspec
20+
setup.bat = setup.bat
21+
EndProjectSection
22+
EndProject
23+
Project("{BBD0F5D1-1CC4-42FD-BA4C-A96779C64378}") = "HarmonyCoreExtensions", "HarmonyCoreExtensions\HarmonyCoreExtensions.synproj", "{1F68B271-629B-4C92-972F-AD384A91266C}"
24+
EndProject
25+
Project("{BBD0F5D1-1CC4-42FD-BA4C-A96779C64378}") = "HarmonyCoreCodeGen.Core", "HarmonyCoreCodeGen.Core\HarmonyCoreCodeGen.Core.synproj", "{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}"
26+
EndProject
27+
Global
28+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
29+
Debug|Any CPU = Debug|Any CPU
30+
Deploy|Any CPU = Deploy|Any CPU
31+
Release|Any CPU = Release|Any CPU
32+
EndGlobalSection
33+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
34+
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
35+
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Debug|Any CPU.Build.0 = Debug|Any CPU
36+
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Deploy|Any CPU.ActiveCfg = Deploy|Any CPU
37+
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Deploy|Any CPU.Build.0 = Deploy|Any CPU
38+
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Release|Any CPU.ActiveCfg = Release|Any CPU
39+
{7F590216-7DA0-4662-988B-166C12A0CE1A}.Release|Any CPU.Build.0 = Release|Any CPU
40+
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
41+
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Debug|Any CPU.Build.0 = Debug|Any CPU
42+
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Deploy|Any CPU.ActiveCfg = Deploy|Any CPU
43+
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Deploy|Any CPU.Build.0 = Deploy|Any CPU
44+
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Release|Any CPU.ActiveCfg = Release|Any CPU
45+
{D3564B19-4E1F-4C84-958C-1443FDAECF87}.Release|Any CPU.Build.0 = Release|Any CPU
46+
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47+
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Debug|Any CPU.Build.0 = Debug|Any CPU
48+
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Deploy|Any CPU.ActiveCfg = Deploy|Any CPU
49+
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Deploy|Any CPU.Build.0 = Deploy|Any CPU
50+
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Release|Any CPU.ActiveCfg = Release|Any CPU
51+
{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}.Release|Any CPU.Build.0 = Release|Any CPU
52+
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
53+
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Debug|Any CPU.Build.0 = Debug|Any CPU
54+
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Deploy|Any CPU.ActiveCfg = Deploy|Any CPU
55+
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Deploy|Any CPU.Build.0 = Deploy|Any CPU
56+
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Release|Any CPU.ActiveCfg = Release|Any CPU
57+
{7FCB9197-372F-4C85-AB05-7765EA2BF067}.Release|Any CPU.Build.0 = Release|Any CPU
58+
{1F68B271-629B-4C92-972F-AD384A91266C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
59+
{1F68B271-629B-4C92-972F-AD384A91266C}.Debug|Any CPU.Build.0 = Debug|Any CPU
60+
{1F68B271-629B-4C92-972F-AD384A91266C}.Deploy|Any CPU.ActiveCfg = Release|Any CPU
61+
{1F68B271-629B-4C92-972F-AD384A91266C}.Deploy|Any CPU.Build.0 = Release|Any CPU
62+
{1F68B271-629B-4C92-972F-AD384A91266C}.Release|Any CPU.ActiveCfg = Release|Any CPU
63+
{1F68B271-629B-4C92-972F-AD384A91266C}.Release|Any CPU.Build.0 = Release|Any CPU
64+
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
65+
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Debug|Any CPU.Build.0 = Debug|Any CPU
66+
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Deploy|Any CPU.ActiveCfg = Release|Any CPU
67+
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Deploy|Any CPU.Build.0 = Release|Any CPU
68+
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Release|Any CPU.ActiveCfg = Release|Any CPU
69+
{6C94D108-0F08-4C31-A6A1-2F626DF92CAF}.Release|Any CPU.Build.0 = Release|Any CPU
70+
EndGlobalSection
71+
GlobalSection(SolutionProperties) = preSolution
72+
HideSolutionNode = FALSE
73+
EndGlobalSection
74+
GlobalSection(ExtensibilityGlobals) = postSolution
75+
SolutionGuid = {7ECBF38A-3A48-42C1-B4AD-9E0DCE3BAE8E}
76+
EndGlobalSection
77+
EndGlobal

DotNetCore/CodeGenEngine/CodeGenEngine.synproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk" DefaultTargets="restore;Build">
22
<Import Project="..\..\Common.props" />
33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<DefaultLanguageSourceExtension>.dbl</DefaultLanguageSourceExtension>
66
<PlatformTarget>AnyCPU</PlatformTarget>
77
<ProjectGuid>{D2FC7695-E44F-48C0-A4A5-1E85B76EFA48}</ProjectGuid>
88
<EnableCommonProperties>True</EnableCommonProperties>
99
<IgnoreCommonPropWarning>False</IgnoreCommonPropWarning>
10+
<Prefer32Bit>False</Prefer32Bit>
11+
<IncludeDebugInformation>False</IncludeDebugInformation>
1012
</PropertyGroup>
1113
<ItemGroup>
1214
<PackageReference Include="Newtonsoft.Json">

DotNetCore/HarmonyCoreExtensions/HarmonyCoreExtensions.synproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk" DefaultTargets="restore;Build">
22
<PropertyGroup>
3-
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">net8.0</TargetFramework>
4-
<TargetFramework Condition="'$(TargetFrameworkOverride)' != ''">TargetFrameworkOverride</TargetFramework>
3+
<TargetFramework>netstandard2.0</TargetFramework>
54
<DefaultLanguageSourceExtension>.dbl</DefaultLanguageSourceExtension>
5+
<PlatformTarget>AnyCPU</PlatformTarget>
66
<EnableDefaultItems>false</EnableDefaultItems>
77
<ProjectGuid>{1f68b271-629b-4c92-972f-ad384a91266c}</ProjectGuid>
88
<Name>HarmonyCoreExtensions</Name>
99
<IgnoreCommonPropWarning>False</IgnoreCommonPropWarning>
10+
<Prefer32Bit>False</Prefer32Bit>
1011
</PropertyGroup>
1112
<ItemGroup>
1213
<PackageReference Include="Synergex.SynergyDE.Build">

DotNetCore/MethodCatalogAPI/MethodCatalogAPI.synproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk" DefaultTargets="restore;Build">
22
<Import Project="..\..\Common.props" />
33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<DefaultLanguageSourceExtension>.dbl</DefaultLanguageSourceExtension>
66
<PlatformTarget>AnyCPU</PlatformTarget>
77
<ProjectGuid>{D3564B19-4E1F-4C84-958C-1443FDAECF87}</ProjectGuid>
88
<EnableCommonProperties>True</EnableCommonProperties>
99
<IgnoreCommonPropWarning>False</IgnoreCommonPropWarning>
10+
<Prefer32Bit>False</Prefer32Bit>
11+
<IncludeDebugInformation>False</IncludeDebugInformation>
1012
</PropertyGroup>
1113
<ItemGroup>
1214
<PackageReference Include="Synergex.SynergyDE.Build">

DotNetCore/RepositoryAPI/RepositoryAPI.synproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk" DefaultTargets="restore;Build">
22
<Import Project="..\..\Common.props" />
33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<DefaultLanguageSourceExtension>.dbl</DefaultLanguageSourceExtension>
66
<PlatformTarget>AnyCPU</PlatformTarget>
77
<ProjectGuid>{7f590216-7da0-4662-988b-166c12a0ce1a}</ProjectGuid>
88
<EnableCommonProperties>True</EnableCommonProperties>
99
<IgnoreCommonPropWarning>False</IgnoreCommonPropWarning>
10+
<Prefer32Bit>False</Prefer32Bit>
11+
<IncludeDebugInformation>False</IncludeDebugInformation>
1012
</PropertyGroup>
1113
<ItemGroup>
1214
<PackageReference Include="Newtonsoft.Json">

RepositoryAPI.nuspec

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3+
<metadata>
4+
<id>RepositoryAPI</id>
5+
<version>$version$</version>
6+
<authors>Synergex International Corporation</authors>
7+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
8+
<description>A .NET API for accessing metadata from a Synergy Repository.</description>
9+
<projectUrl>https://github.com/Synergex/CodeGen</projectUrl>
10+
<repository type="git" url="https://github.com/Synergex/CodeGen" commit="$Build.SourceVersion$" />
11+
<dependencies>
12+
<group targetFramework="netstandard2.0">
13+
<dependency id="Newtonsoft.Json" version="[13.0.3,14)" />
14+
<dependency id="Synergex.SynergyDE.Build" version="[25.3.1285,26)" include="All" />
15+
<dependency id="Synergex.SynergyDE.ddlib" version="[12.4.1.1002,13)" include="All" />
16+
<dependency id="Synergex.SynergyDE.synrnt" version="[12.4.1.1002,13)" include="All" />
17+
<dependency id="Synergex.SynergyDE.synxml" version="[12.4.1.1002,13)" include="All" />
18+
</group>
19+
</dependencies>
20+
</metadata>
21+
<files>
22+
<file src="DotNetCore\RepositoryAPI\bin\Release\netstandard2.0\RepositoryAPI.dll" target="lib\netstandard2.0\RepositoryAPI.dll" />
23+
<file src="DotNetCore\RepositoryAPI\bin\Release\netstandard2.0\RepositoryAPI.pdb" target="lib\netstandard2.0\RepositoryAPI.pdb" />
24+
<file src="RepositoryAPI\*.dbl" target="src\RepositoryAPI\" />
25+
</files>
26+
</package>

azure-pipelines.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jobs:
2424

2525
variables:
2626
- group: Secure
27-
- name: solution
28-
value: 'CodeGen.sln'
2927
- name: currentVersion
3028
value: '6.0.8'
3129
- name: buildPlatform
@@ -40,7 +38,7 @@ jobs:
4038
- task: NuGetCommand@2
4139
displayName: 'Restore NuGet packages'
4240
inputs:
43-
restoreSolution: '$(solution)'
41+
restoreSolution: '**/*.sln'
4442

4543
- task: BatchScript@1
4644
displayName: 'Configure SDE environment'
@@ -50,9 +48,9 @@ jobs:
5048
modifyEnvironment: true
5149

5250
- task: VSBuild@1
53-
displayName: 'Build CodeGen solution and installer'
51+
displayName: 'Build CodeGen solutions and installer'
5452
inputs:
55-
solution: '$(solution)'
53+
solution: '**/*.sln'
5654
platform: '$(buildPlatform)'
5755
configuration: '$(buildConfiguration)'
5856
vsVersion: 17.0
@@ -63,7 +61,6 @@ jobs:
6361
platform: '$(buildPlatform)'
6462
configuration: '$(buildConfiguration)'
6563

66-
6764
- task: CmdLine@2
6865
displayName: 'Sign MSI file'
6966
inputs:
@@ -74,8 +71,15 @@ jobs:
7471
inputs:
7572
pathToPublish: 'bin\release\CodeGen_$(currentVersion).msi'
7673
artifactName: 'CodeGen-Installer'
77-
#publishLocation: 'Container' # Options: container, filePath
78-
#targetPath: # Required when publishLocation == FilePath
79-
#parallel: false # Optional
80-
#parallelCount: # Optional
81-
#fileCopyOptions: #Optional
74+
75+
- script: |
76+
nuget pack RepositoryAPI.nuspec -Version $(currentVersion) -OutputDirectory $(Build.ArtifactStagingDirectory)
77+
displayName: 'Pack RepositoryAPI NuGet package'
78+
79+
- task: PublishBuildArtifacts@1
80+
displayName: 'Save NuGet package(s) as artifact(s)'
81+
inputs:
82+
targetPath: '$(Build.ArtifactStagingDirectory)/RepositoryAPI.$(currentVersion).nupkg'
83+
artifact: 'RepositoryAPI.$(currentVersion)'
84+
publishLocation: 'pipeline'
85+

0 commit comments

Comments
 (0)