(refactor): src folder fix
This commit is contained in:
parent
9107fc86ed
commit
11007293cb
@ -23,7 +23,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\src\MaksIT.Results\MaksIT.Results.csproj" />
|
<ProjectReference Include="..\MaksIT.Results\MaksIT.Results.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -5,7 +5,7 @@ VisualStudioVersion = 17.9.34902.65
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MaksIT.Results", "MaksIT.Results\MaksIT.Results.csproj", "{E947F5FC-8FD9-4F1E-AA5F-29FED95B5A2D}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MaksIT.Results", "MaksIT.Results\MaksIT.Results.csproj", "{E947F5FC-8FD9-4F1E-AA5F-29FED95B5A2D}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MaksIT.Results.Tests", "..\MaksIT.Results.Tests\MaksIT.Results.Tests.csproj", "{BFD6A824-5A87-4C3A-9F95-32E318E1B683}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MaksIT.Results.Tests", "MaksIT.Results.Tests\MaksIT.Results.Tests.csproj", "{68D2F460-1550-5219-355F-BEDA6C1557AA}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@ -17,10 +17,10 @@ Global
|
|||||||
{E947F5FC-8FD9-4F1E-AA5F-29FED95B5A2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{E947F5FC-8FD9-4F1E-AA5F-29FED95B5A2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{E947F5FC-8FD9-4F1E-AA5F-29FED95B5A2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{E947F5FC-8FD9-4F1E-AA5F-29FED95B5A2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{E947F5FC-8FD9-4F1E-AA5F-29FED95B5A2D}.Release|Any CPU.Build.0 = Release|Any CPU
|
{E947F5FC-8FD9-4F1E-AA5F-29FED95B5A2D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{BFD6A824-5A87-4C3A-9F95-32E318E1B683}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{68D2F460-1550-5219-355F-BEDA6C1557AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{BFD6A824-5A87-4C3A-9F95-32E318E1B683}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{68D2F460-1550-5219-355F-BEDA6C1557AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{BFD6A824-5A87-4C3A-9F95-32E318E1B683}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{68D2F460-1550-5219-355F-BEDA6C1557AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{BFD6A824-5A87-4C3A-9F95-32E318E1B683}.Release|Any CPU.Build.0 = Release|Any CPU
|
{68D2F460-1550-5219-355F-BEDA6C1557AA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
@ -12,11 +12,20 @@ $nugetSource = "https://api.nuget.org/v3/index.json"
|
|||||||
$solutionDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
$solutionDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||||
$projectDir = "$solutionDir\MaksIT.Results"
|
$projectDir = "$solutionDir\MaksIT.Results"
|
||||||
$outputDir = "$projectDir\bin\Release"
|
$outputDir = "$projectDir\bin\Release"
|
||||||
|
$testProjectDir = "$solutionDir\MaksIT.Results.Tests"
|
||||||
|
|
||||||
# Clean previous builds
|
# Clean previous builds
|
||||||
Write-Host "Cleaning previous builds..."
|
Write-Host "Cleaning previous builds..."
|
||||||
dotnet clean $projectDir -c Release
|
dotnet clean $projectDir -c Release
|
||||||
|
|
||||||
|
# Run tests
|
||||||
|
Write-Host "Running tests..."
|
||||||
|
dotnet test $testProjectDir -c Release --no-build
|
||||||
|
if ($LASTEXITCODE -ne 0) {
|
||||||
|
Write-Host "Tests failed. Aborting release process."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
# Build the project
|
# Build the project
|
||||||
Write-Host "Building the project..."
|
Write-Host "Building the project..."
|
||||||
dotnet build $projectDir -c Release
|
dotnet build $projectDir -c Release
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user