Skip to content

Commit 1b87a16

Browse files
committed
build updated
1 parent 386e10e commit 1b87a16

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

BuildSolution.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

2-
$msbuildPath = "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\msbuild.exe"
3-
4-
Write-Host "Testing path: " $msbuildPath
2+
# $msbuildPath = "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\msbuild.exe"
53

4+
# Write-Host "Testing path: " $msbuildPath
5+
<#
66
if(!(Test-Path $msbuildPath)){
77
Write-Host "Can't find msbuild?? make sur eyou installed visual studio 2015 or 2017"
88
Exit(1)
@@ -11,4 +11,6 @@ if(!(Test-Path $msbuildPath)){
1111
Write-Host "Using path: " $msbuildPath
1212
1313
& $msbuildPath .\DevopsTest.sln
14+
#>
15+
& dotnet build .\DevopsTest.Build\DevopsTest.Build.csproj
1416

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project Sdk="MSBuild.Sdk.SqlProj/1.15.0">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
</PropertyGroup>
6+
<ItemGroup>
7+
<Content Include="..\DevopsTest\**\**\*.sql" />
8+
</ItemGroup>
9+
10+
11+
</Project>

DevopsTest.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "DevopsTest", "DevopsTest\De
77
EndProject
88
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "DevopsTest.Tests", "DevopsTest.Tests\DevopsTest.Tests.sqlproj", "{36E394DF-C0D4-4DBC-AAB4-74AB0BBD2E54}"
99
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevopsTest.Build", "DevopsTest.Build\DevopsTest.Build.csproj", "{B699C83A-430B-4DF3-AB23-17813370E6ED}"
11+
EndProject
1012
Global
1113
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1214
Debug|Any CPU = Debug|Any CPU
@@ -25,6 +27,10 @@ Global
2527
{36E394DF-C0D4-4DBC-AAB4-74AB0BBD2E54}.Release|Any CPU.ActiveCfg = Release|Any CPU
2628
{36E394DF-C0D4-4DBC-AAB4-74AB0BBD2E54}.Release|Any CPU.Build.0 = Release|Any CPU
2729
{36E394DF-C0D4-4DBC-AAB4-74AB0BBD2E54}.Release|Any CPU.Deploy.0 = Release|Any CPU
30+
{B699C83A-430B-4DF3-AB23-17813370E6ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
31+
{B699C83A-430B-4DF3-AB23-17813370E6ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
32+
{B699C83A-430B-4DF3-AB23-17813370E6ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
33+
{B699C83A-430B-4DF3-AB23-17813370E6ED}.Release|Any CPU.Build.0 = Release|Any CPU
2834
EndGlobalSection
2935
GlobalSection(SolutionProperties) = preSolution
3036
HideSolutionNode = FALSE

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM mcr.microsoft.com/dotnet/sdk:6.0
2+
ARG BUILD_CONFIGURATION=Debug
3+
ENV ASPNETCORE_ENVIRONMENT=Development
4+
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
5+
6+
WORKDIR /src
7+
8+
COPY ["DevopsTest.Build/DevopsTest.Build.csproj", "DevopsTest.Build/"]
9+
10+
11+
COPY . .
12+
WORKDIR /src/DevopsTest.Build
13+
RUN dotnet build -c $BUILD_CONFIGURATION

0 commit comments

Comments
 (0)