mirror of
https://github.com/RRQM/TouchSocket.git
synced 2025-12-17 17:06:45 +08:00
重构(TouchSocket): 升级解决方案并移除无用文件
升级解决方案文件至 Visual Studio 18 删除 RESX_NeutralResourcesLanguage 配置项 调整共享项目文件引用 移除集中式包管理的 PowerShell 脚本 删除替换脚本.exe 二进制文件
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 17
|
# Visual Studio Version 18
|
||||||
VisualStudioVersion = 17.3.32825.248
|
VisualStudioVersion = 18.0.11217.181 d18.0
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TouchSocket.Core", "Src\TouchSocket.Core\TouchSocket.Core.csproj", "{12471445-B5C5-49E2-A7AC-15782299C5A9}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TouchSocket.Core", "Src\TouchSocket.Core\TouchSocket.Core.csproj", "{12471445-B5C5-49E2-A7AC-15782299C5A9}"
|
||||||
EndProject
|
EndProject
|
||||||
@@ -201,7 +201,6 @@ Global
|
|||||||
{201772F1-8C5E-4815-85F2-0CD8507006E7} = {065EA3E8-D90E-4074-9979-D651EE4E6B3E}
|
{201772F1-8C5E-4815-85F2-0CD8507006E7} = {065EA3E8-D90E-4074-9979-D651EE4E6B3E}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
RESX_NeutralResourcesLanguage = en-001
|
|
||||||
SolutionGuid = {AD1F133D-9B7E-4CD1-97E0-31D529E5CD90}
|
SolutionGuid = {AD1F133D-9B7E-4CD1-97E0-31D529E5CD90}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
# PowerShell script to update all project files to use centralized package management
|
|
||||||
# This script removes Version attributes from PackageReference elements
|
|
||||||
|
|
||||||
$projectFiles = Get-ChildItem -Path "." -Recurse -Filter "*.csproj"
|
|
||||||
|
|
||||||
foreach ($project in $projectFiles) {
|
|
||||||
Write-Host "Processing: $($project.FullName)"
|
|
||||||
|
|
||||||
$content = Get-Content $project.FullName -Raw
|
|
||||||
|
|
||||||
# Remove Version attributes from PackageReference elements
|
|
||||||
$updatedContent = $content -replace '(<PackageReference\s+Include="[^"]+")(\s+Version="[^"]+")(\s*/?>)', '$1$3'
|
|
||||||
|
|
||||||
# Only update the file if changes were made
|
|
||||||
if ($content -ne $updatedContent) {
|
|
||||||
Set-Content -Path $project.FullName -Value $updatedContent -NoNewline
|
|
||||||
Write-Host "Updated: $($project.Name)" -ForegroundColor Green
|
|
||||||
} else {
|
|
||||||
Write-Host "No changes needed: $($project.Name)" -ForegroundColor Yellow
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host "All project files have been processed!" -ForegroundColor Cyan
|
|
||||||
Binary file not shown.
Reference in New Issue
Block a user