Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
Iot
提交
ad8b2c6f
I
Iot
项目概览
jobily
/
Iot
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
Iot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
ad8b2c6f
编写于
9月 13, 2022
作者:
J
Jose Perez Rodriguez
提交者:
GitHub
9月 13, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Speed up the build by only performing one restore, and parallelizing build (#1924)
上级
b1cee19c
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
20 addition
and
68 deletion
+20
-68
build.proj
build.proj
+15
-64
eng/Versions.external.props
eng/Versions.external.props
+2
-2
global.json
global.json
+3
-2
未找到文件。
build.proj
浏览文件 @
ad8b2c6f
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.Build.Traversal">
<Project
ToolsVersion=
"14.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Import
Project=
"Directory.Build.props"
/>
<PropertyGroup>
<PropertyGroup>
<BuildRestore Condition="'$(BuildRestore)'==''">true</BuildRestore>
<BuildRestore Condition="'$(BuildRestore)'==''">true</BuildRestore>
...
@@ -9,80 +7,33 @@
...
@@ -9,80 +7,33 @@
<SampleBuild Condition="'$(SampleBuild)'==''">true</SampleBuild>
<SampleBuild Condition="'$(SampleBuild)'==''">true</SampleBuild>
<BuildTests Condition="'$(BuildTests)'==''">true</BuildTests>
<BuildTests Condition="'$(BuildTests)'==''">true</BuildTests>
<BuildPackages Condition="'$(BuildPackages)'==''">false</BuildPackages>
<BuildPackages Condition="'$(BuildPackages)'==''">false</BuildPackages>
<BuildDependsOn
Condition=
"'$(BuildRestore)'=='true'"
>
$(BuildDependsOn);Restore
</BuildDependsOn>
<BuildDependsOn
Condition=
"'$(ProductBuild)'=='true'"
>
$(BuildDependsOn);BuildProduct
</BuildDependsOn>
<BuildDependsOn
Condition=
"'$(ToolsBuild)'=='true'"
>
$(BuildDependsOn);BuildTools
</BuildDependsOn>
<BuildDependsOn
Condition=
"'$(SampleBuild)'=='true'"
>
$(BuildDependsOn);BuildSamples
</BuildDependsOn>
<BuildDependsOn
Condition=
"'$(BuildTests)'=='true'"
>
$(BuildDependsOn);Test
</BuildDependsOn>
<BuildDependsOn
Condition=
"'$(BuildPackages)'=='true'"
>
$(BuildDependsOn);Pack
</BuildDependsOn>
</PropertyGroup>
</PropertyGroup>
<Import
Project=
"Directory.Build.targets"
/>
<ItemGroup>
<ItemGroup>
<!-- Build product -->
<UnitTestProjects Include="$(MSBuildThisFileDirectory)src\devices\**\*.Tests.csproj" />
<UnitTestProjects Include="$(MSBuildThisFileDirectory)src\devices\**\*.Tests.csproj" />
</ItemGroup>
<Target
Name=
"BuildProduct"
>
<ItemGroup>
<_ExcludeBuildProductProjects
Include=
"$(MSBuildThisFileDirectory)src\Native\build-native.proj"
/>
<_BuildProductProjects Include="$(MSBuildThisFileDirectory)src\**\*.csproj" Exclude="@(_ExcludeBuildProductProjects);@(UnitTestProjects)" />
<_BuildProductProjects Include="$(MSBuildThisFileDirectory)src\**\*.csproj" Exclude="@(_ExcludeBuildProductProjects);@(UnitTestProjects)" />
</ItemGroup>
<MSBuild
Projects=
"@(_BuildProductProjects)"
/>
<ProjectReference Condition="'$(ProductBuild)' == 'true'" Include="@(_BuildProductProjects)" />
</Target>
<Target
Name=
"BuildTools"
>
<!-- Build tools -->
<ItemGroup>
<_BuildToolProjects Include="$(MSBuildThisFileDirectory)tools\**\*.csproj" />
<_BuildToolProjects Include="$(MSBuildThisFileDirectory)tools\**\*.csproj" />
</ItemGroup>
<MSBuild
Projects=
"@(_BuildToolProjects)"
/>
<ProjectReference Condition="'$(ToolsBuild)' == 'true'" Include="@(_BuildToolProjects)" />
</Target>
<Target
Name=
"BuildSamples"
>
<!-- Build samples -->
<ItemGroup>
<_ExcludeBuildSampleProjects Include="$(MSBuildThisFileDirectory)samples\serialport-arduino\arduino-demo.csproj" />
<_ExcludeBuildSampleProjects Include="$(MSBuildThisFileDirectory)samples\serialport-arduino\arduino-demo.csproj" />
<_BuildSampleProjects Include="$(MSBuildThisFileDirectory)samples\**\*.csproj" Exclude="@(_ExcludeBuildSampleProjects)" />
<_BuildSampleProjects Include="$(MSBuildThisFileDirectory)samples\**\*.csproj" Exclude="@(_ExcludeBuildSampleProjects)" />
</ItemGroup>
<MSBuild
Projects=
"@(_BuildSampleProjects)"
/>
<ProjectReference Condition="'$(SampleBuild)' == 'true'" Include="@(_BuildSampleProjects)" />
</Target>
<Target
Name=
"Restore"
>
<!-- Build tests -->
<ItemGroup>
<ProjectReference Condition="'$(BuildTests)' == 'true'" Include="@(UnitTestProjects)" Targets="VSTest" />
<_ExcludeProjectsToRestore
Include=
"$(MSBuildThisFileDirectory)samples\serialport-arduino\arduino-demo.csproj"
/>
<_ExcludeProjectsToRestore
Include=
"$(MSBuildThisFileDirectory)eng\**\*.csproj"
/>
<_ProjectsToRestore
Include=
"$(MSBuildThisFileDirectory)**\*.csproj"
Exclude=
"@(_ExcludeProjectsToRestore)"
/>
</ItemGroup>
<MSBuild
Projects=
"@(_ProjectsToRestore)"
Targets=
"Restore"
/>
</Target>
<Target
Name=
"Test"
>
<!-- Run Pack -->
<MSBuild
Projects=
"@(UnitTestProjects)"
Targets=
"VSTest"
ContinueOnError=
"ErrorAndContinue"
/>
<Error
Condition=
"$(MSBuildLastTaskResult) != 'true'"
Text=
"Unit tests failed. Please check the detailed log to find out which ones failed."
/>
</Target>
<Target
Name=
"Pack"
>
<ItemGroup>
<_ProjectsToPackage Include="$(MSBuildThisFileDirectory)src\Iot.Device.Bindings\Iot.Device.Bindings.csproj" />
<_ProjectsToPackage Include="$(MSBuildThisFileDirectory)src\Iot.Device.Bindings\Iot.Device.Bindings.csproj" />
<_ProjectsToPackage Include="$(MSBuildThisFileDirectory)src\System.Device.Gpio\System.Device.Gpio.csproj" />
<_ProjectsToPackage Include="$(MSBuildThisFileDirectory)src\System.Device.Gpio\System.Device.Gpio.csproj" />
</ItemGroup>
<MSBuild
Projects=
"@(_ProjectsToPackage)"
Targets=
"Pack"
/>
</Target>
<Target
Name=
"Build"
DependsOnTargets=
"$(BuildDependsOn)"
/>
<Target
Name=
"Clean"
>
<ProjectReference Condition="'$(BuildPackages)' == 'true'" Include="@(_ProjectsToPackage)" Targets="Pack" />
<RemoveDir
Directories=
"$(ArtifactsObjDir)"
/>
</ItemGroup>
<RemoveDir
Directories=
"$(ArtifactsBinDir)"
/>
<RemoveDir
Directories=
"$(ArtifactsPackagesDir)"
/>
</Target>
<Target
Name=
"Rebuild"
DependsOnTargets=
"Clean;Build"
/>
</Project>
</Project>
eng/Versions.external.props
浏览文件 @
ad8b2c6f
<Project>
<Project>
<!-- These references to third-party libraries are included in all projects except System.Device.Gpio -->
<!-- These references to third-party libraries are included in all projects except System.Device.Gpio
and the build wrapper project
-->
<ItemGroup Condition="'$(MSBuildProjectName)' != 'System.Device.Gpio'">
<ItemGroup Condition="'$(MSBuildProjectName)' != 'System.Device.Gpio'
And '$(MSBuildProjectName)' != 'build'
">
<PackageReference Include="UnitsNet" Version="4.77.0" />
<PackageReference Include="UnitsNet" Version="4.77.0" />
<PackageReference Include="SixLabors.ImageSharp" Version="1.0.2" />
<PackageReference Include="SixLabors.ImageSharp" Version="1.0.2" />
</ItemGroup>
</ItemGroup>
...
...
global.json
浏览文件 @
ad8b2c6f
...
@@ -12,7 +12,8 @@
...
@@ -12,7 +12,8 @@
"version"
:
"7.0.100-preview.7.22377.5"
"version"
:
"7.0.100-preview.7.22377.5"
},
},
"msbuild-sdks"
:
{
"msbuild-sdks"
:
{
"Microsoft.DotNet.Arcade.Sdk"
:
"8.0.0-beta.22452.1"
,
"Microsoft.DotNet.Arcade.Sdk"
:
"8.0.0-beta.22463.1"
,
"Microsoft.DotNet.Helix.Sdk"
:
"8.0.0-beta.22452.1"
"Microsoft.DotNet.Helix.Sdk"
:
"8.0.0-beta.22463.1"
,
"Microsoft.Build.Traversal"
:
"3.1.6"
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录