-
Notifications
You must be signed in to change notification settings - Fork 0
/
workbench-post-example.txt
18 lines (12 loc) · 1.01 KB
/
workbench-post-example.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# clone submodule
git submodule add https://github.com/johnvpetersen/DynamicLambda.git dependencies/submodules/dynamiclambda
# add references to cloned projects to .net solution
dotnet sln add dependencies/submodules/dynamiclambda/Core/Core.csproj
dotnet sln add dependencies/submodules/dynamiclambda/Core.Test/Core.Test.csproj
# add reference to non-test cloned projects to integration test project
dotnet add tests/integration/integration.csproj reference dependencies/submodules/dynamiclambda/Core/Core.csproj
# update both cloned projects to .net 8
sed -i -E 's|<TargetFramework>.*</TargetFramework>|<TargetFramework>net8.0</TargetFramework>|' dependencies/submodules/dynamiclambda/Core/Core.csproj
sed -i -E 's|<TargetFramework>.*</TargetFramework>|<TargetFramework>net8.0</TargetFramework>|' dependencies/submodules/dynamiclambda/Core.Test/Core.Test.csproj
# add code coverage to cloned test project
dotnet add dependencies/submodules/dynamiclambda/Core.Test/Core.Test.csproj package coverlet.msbuild --version 6.0.0