File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 21
21
]
22
22
},
23
23
"microsoft.visualstudio.slngen.tool" : {
24
- "version" : " 6.3.0 " ,
24
+ "version" : " 8.1.6 " ,
25
25
"commands" : [
26
26
" slngen"
27
27
]
Original file line number Diff line number Diff line change 118
118
<Import Project =" $(RepositoryEngineeringDir)testing\runtimeConfiguration.targets" />
119
119
<Import Project =" $(RepositoryEngineeringDir)testing\runsettings.targets" Condition =" '$(EnableRunSettingsSupport)' == 'true'" />
120
120
<Import Project =" $(RepositoryEngineeringDir)testing\coverage.targets" Condition =" '$(EnableRunSettingsSupport)' == 'true' or '$(EnableCoverageSupport)' == 'true'" />
121
- <Import Project =" $(RepositoryEngineeringDir)slngen.targets" />
121
+ <Import Project =" $(RepositoryEngineeringDir)slngen.targets" Condition = " '$(IsSlnGen)' == 'true' " />
122
122
123
123
<Import Project =" $(RepositoryEngineeringDir)illink.targets" Condition =" '$(IsSourceProject)' == 'true'" />
124
124
<Import Project =" $(RepositoryEngineeringDir)AvoidRestoreCycleOnSelfReference.targets" Condition =" '$(AvoidRestoreCycleOnSelfReference)' == 'true'" />
Original file line number Diff line number Diff line change 1
- <!--
2
- Targets that can be executed individually even though they are sequenced into build already:
3
- - UpdateSolutionFile: Adds/updates solution files with slngen which includes dependencies.
4
- -->
5
1
<Project Sdk =" Microsoft.Build.NoTargets" >
6
2
<PropertyGroup >
3
+ <ScriptExt Condition =" $([MSBuild]::IsOSPlatform('WINDOWS'))" >.cmd</ScriptExt >
4
+ <ScriptExt Condition =" !$([MSBuild]::IsOSPlatform('WINDOWS'))" >.sh</ScriptExt >
7
5
<ProjTemplatePath >$(RepositoryEngineeringDir)slngen.template.proj</ProjTemplatePath >
8
6
</PropertyGroup >
9
7
10
8
<ItemGroup >
11
- <SolutionFile Include = " $(MSBuildThisFileDirectory)*\*.sln " / >
12
- <SourceProject Include =" $(MSBuildThisFileDirectory)*\src\*.*proj " />
9
+ <!-- Unless a "/p:SolutionName" property is passed in, glob all solutions under src/libraries. -- >
10
+ <SolutionFile Include =" $(MSBuildThisFileDirectory)$([MSBuild]::ValueOrDefault('$(SolutionName)', '%2A'))\*.sln " />
13
11
</ItemGroup >
14
12
15
13
<Target Name =" UpdateSolutionFile"
22
20
DestinationFiles =" %(SolutionFile.ProjFilePath)" />
23
21
24
22
<!-- Invoke slngen -->
25
- <Exec Command =" dotnet slngen -p SlnGenMainProject=%(SolutionFile.Filename) --launch false --nologo " %(SolutionFile.ProjFilePath)" " />
23
+ <Exec Command =" " $(RepoRoot) dotnet$(ScriptExt) " slngen -p SlnGenMainProject=%(SolutionFile.Filename) --launch false --nologo " %(SolutionFile.ProjFilePath)" " />
26
24
27
25
<!-- Delete temporary template file -->
28
26
<Delete Files =" %(SolutionFile.ProjFilePath)" />
31
29
<Target Name =" GetSolutionFiles" >
32
30
<ItemGroup >
33
31
<!-- Add attributes that require a separate item mutation. -->
34
- <SolutionFile ProjFilePath =" %(RelativeDir)%(Filename).proj"
35
- NuGetConfigFilePath =" %(RelativeDir)NuGet.config" />
32
+ <SolutionFile ProjFilePath =" %(RelativeDir)%(Filename).proj" />
36
33
</ItemGroup >
37
34
</Target >
38
35
</Project >
You can’t perform that action at this time.
0 commit comments