Skip to content

Commit

Permalink
更早设置dotnet版本
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Nov 28, 2024
1 parent 56ff4f5 commit f1a0498
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unity/cli/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,11 @@ async function runTest(cwd, copyConfig, runInReflection, filter = '') {
rm("-rf", join(cwd, 'Src/StaticWrapper'));

mkdir("-p", workdir);
selectSdk(workdir);
exec(`dotnet new nunit`, { cwd: workdir });
rm('-rf', join(workdir, 'UnitTest1.cs'));
rm('-rf', join(workdir, 'Usings.cs'));

selectSdk(workdir);

const originProjectConfig = readFileSync(
join(workdir, `${testProjectName}.csproj`), 'utf-8'
);
Expand Down

0 comments on commit f1a0498

Please sign in to comment.