diff --git a/GFramework.Core/GFramework.Core.csproj b/GFramework.Core/GFramework.Core.csproj index 7edefe5..eb54995 100644 --- a/GFramework.Core/GFramework.Core.csproj +++ b/GFramework.Core/GFramework.Core.csproj @@ -3,10 +3,10 @@ GeWuYou.$(AssemblyName) net8.0;net9.0;net10.0 - enable + disable enable - + diff --git a/GFramework.Core/GlobalUsings.cs b/GFramework.Core/GlobalUsings.cs new file mode 100644 index 0000000..e44a261 --- /dev/null +++ b/GFramework.Core/GlobalUsings.cs @@ -0,0 +1,17 @@ +// Copyright (c) 2025 GeWuYou +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +global using System; +global using System.Collections.Generic; +global using System.Linq; +global using System.Threading.Tasks; \ No newline at end of file diff --git a/GFramework.Core/coroutine/CoroutineHelper.cs b/GFramework.Core/coroutine/CoroutineHelper.cs index 4417784..7e65929 100644 --- a/GFramework.Core/coroutine/CoroutineHelper.cs +++ b/GFramework.Core/coroutine/CoroutineHelper.cs @@ -1,3 +1,4 @@ +using System.Threading; using GFramework.Core.Abstractions.coroutine; using GFramework.Core.coroutine.instructions; diff --git a/GFramework.Core/coroutine/instructions/AsyncOperation.cs b/GFramework.Core/coroutine/instructions/AsyncOperation.cs index 73f7fb5..91732e5 100644 --- a/GFramework.Core/coroutine/instructions/AsyncOperation.cs +++ b/GFramework.Core/coroutine/instructions/AsyncOperation.cs @@ -1,4 +1,5 @@ using System.Runtime.CompilerServices; +using System.Threading; using GFramework.Core.Abstractions.coroutine; namespace GFramework.Core.coroutine.instructions; diff --git a/GFramework.Core/coroutine/instructions/WaitForAllCoroutines.cs b/GFramework.Core/coroutine/instructions/WaitForAllCoroutines.cs index 0a5b007..fceb997 100644 --- a/GFramework.Core/coroutine/instructions/WaitForAllCoroutines.cs +++ b/GFramework.Core/coroutine/instructions/WaitForAllCoroutines.cs @@ -1,5 +1,4 @@ - -using GFramework.Core.Abstractions.coroutine; +using GFramework.Core.Abstractions.coroutine; namespace GFramework.Core.coroutine.instructions; diff --git a/GFramework.Core/ioc/IocContainer.cs b/GFramework.Core/ioc/IocContainer.cs index aecfb4e..c4cd341 100644 --- a/GFramework.Core/ioc/IocContainer.cs +++ b/GFramework.Core/ioc/IocContainer.cs @@ -1,3 +1,4 @@ +using System.Threading; using GFramework.Core.Abstractions.ioc; using GFramework.Core.Abstractions.logging; using GFramework.Core.Abstractions.system;