Premiere commit - Omika
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# Correctif MSB4276 : crée les fichiers "workload locator" attendus par le SDK.
|
||||
# Doit être exécuté en tant qu'administrateur.
|
||||
$sdk = "C:\Program Files\dotnet\sdk\10.0.400\Sdks"
|
||||
|
||||
$d1 = "$sdk\Microsoft.NET.SDK.WorkloadAutoImportPropsLocator\Sdk"
|
||||
$d2 = "$sdk\Microsoft.NET.SDK.WorkloadManifestTargetsLocator\Sdk"
|
||||
|
||||
New-Item -ItemType Directory -Force -Path $d1 | Out-Null
|
||||
New-Item -ItemType Directory -Force -Path $d2 | Out-Null
|
||||
Set-Content -Path "$d1\AutoImport.props" -Value '<Project />'
|
||||
Set-Content -Path "$d2\WorkloadManifest.targets" -Value '<Project />'
|
||||
|
||||
if ((Test-Path "$d1\AutoImport.props") -and (Test-Path "$d2\WorkloadManifest.targets")) {
|
||||
Write-Host "SUCCES : locators crees" -ForegroundColor Green
|
||||
} else {
|
||||
Write-Host "ECHEC : impossible de creer les locators" -ForegroundColor Red
|
||||
}
|
||||
Reference in New Issue
Block a user