Skip to content

Commit af46c23

Browse files
committed
Update project structure and code generation targets
- Added `CqlSdkExamplesCodeGeneration.targets` to the solution. - Updated project files to reference the new code generation targets. - Added a new entry to the namespace provider's skip list in settings. - Enhanced documentation in `CqlSdkExamplesCodeGeneration.targets` for clarity on usage.
1 parent 51b5d9b commit af46c23

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

Cql-Sdk-All.sln

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ EndProject
121121
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ncqa.HT.Infrastructure", "submodules\Ncqa.DQIC\Ncqa.HT.Infrastructure\Ncqa.HT.Infrastructure.csproj", "{BAEF695A-5581-B3EE-B352-CBF447240E55}"
122122
EndProject
123123
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{14ED22C5-F918-42DB-A301-04B3AED51EBC}"
124+
ProjectSection(SolutionItems) = preProject
125+
Examples\CqlSdkExamplesCodeGeneration.targets = Examples\CqlSdkExamplesCodeGeneration.targets
126+
EndProjectSection
124127
EndProject
125128
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8EC462FD-D22E-90A8-E5CE-7E832BA40C5D}"
126129
ProjectSection(SolutionItems) = preProject

Examples/CqlSdkExamples/CqlSdkExamples.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
</None>
3333
</ItemGroup>
3434

35-
<!-- Code Generation -->
36-
<Import Project="..\CqlSdkExamples.targets" />
37-
<!-- Code Generation -->
35+
<Import Project="..\CqlSdkExamplesCodeGeneration.targets" />
3836

3937
</Project>

Examples/CqlSdkExamples.targets renamed to Examples/CqlSdkExamplesCodeGeneration.targets

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
<Project>
22

3-
<!-- Code Generation -->
4-
5-
<PropertyGroup Condition="'$(MSBuildRuntimeType)' != 'Core'">
3+
<!--
4+
This file is used to generate the Program.cs and launchSettings.json files in the CqlSdkExamples projects.
5+
It's used to update the Environment.CurrentDirectory in the Program.cs files and to generate the launchSettings.json file
6+
with all the examples in the project directory.
7+
It's used in the CqlSdkExamples and CqlSdkExamplesPreview projects.
8+
It is not to be used with `dotnet run` or `dotnet build` commands, but only with Visual Studio or MSBuild, hence the condition on MSBuildRuntimeType != Core
9+
-->
10+
11+
<PropertyGroup
12+
Condition="'$(MSBuildRuntimeType)' != 'Core'">
613
<RoslynCodeTaskFactoryAssembly Condition="'$(RoslynCodeTaskFactoryAssembly)' == ''">$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll</RoslynCodeTaskFactoryAssembly>
714
</PropertyGroup>
815

@@ -177,6 +184,4 @@
177184
<UpdateLaunchSettingsInSource />
178185
</Target>
179186

180-
<!-- Code Generation -->
181-
182187
</Project>

Examples/CqlSdkExamplesPreview/CqlSdkExamplesPreview.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
</None>
3333
</ItemGroup>
3434

35-
<!-- Code Generation -->
36-
<Import Project="..\CqlSdkExamples.targets" />
37-
<!-- Code Generation -->
35+
<Import Project="..\CqlSdkExamplesCodeGeneration.targets" />
3836

3937
</Project>

0 commit comments

Comments
 (0)