Skip to content

Commit 69a79e0

Browse files
authored
Merge pull request #3 from Twinfield/ARC-DEVLEAD-2984
[ARC-DEVLEAD-2984] Upgrade to dotNet 472.
2 parents 195fe01 + d7efe0d commit 69a79e0

26 files changed

Lines changed: 197 additions & 63 deletions

DataFresh.Common/DataFresh.Common.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
<StartupObject />
2222
<FileUpgradeFlags>
2323
</FileUpgradeFlags>
24-
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
24+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
2525
<UpgradeBackupLocation>
2626
</UpgradeBackupLocation>
2727
<OldToolsVersion>0.0</OldToolsVersion>
28+
<TargetFrameworkProfile />
2829
</PropertyGroup>
2930
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3031
<OutputPath>bin\Debug\</OutputPath>
@@ -45,6 +46,7 @@
4546
<WarningLevel>4</WarningLevel>
4647
<DebugType>full</DebugType>
4748
<ErrorReport>prompt</ErrorReport>
49+
<Prefer32Bit>false</Prefer32Bit>
4850
</PropertyGroup>
4951
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
5052
<OutputPath>bin\Release\</OutputPath>
@@ -65,6 +67,7 @@
6567
<WarningLevel>4</WarningLevel>
6668
<DebugType>none</DebugType>
6769
<ErrorReport>prompt</ErrorReport>
70+
<Prefer32Bit>false</Prefer32Bit>
6871
</PropertyGroup>
6972
<ItemGroup>
7073
<Reference Include="System">

DataFresh/DataFresh.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
<StartupObject />
2222
<FileUpgradeFlags>
2323
</FileUpgradeFlags>
24-
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
24+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
2525
<UpgradeBackupLocation>
2626
</UpgradeBackupLocation>
2727
<OldToolsVersion>0.0</OldToolsVersion>
28+
<TargetFrameworkProfile />
2829
</PropertyGroup>
2930
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3031
<OutputPath>bin\Debug\</OutputPath>
@@ -45,6 +46,7 @@
4546
<WarningLevel>4</WarningLevel>
4647
<DebugType>full</DebugType>
4748
<ErrorReport>prompt</ErrorReport>
49+
<Prefer32Bit>false</Prefer32Bit>
4850
</PropertyGroup>
4951
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
5052
<OutputPath>bin\Release\</OutputPath>
@@ -65,6 +67,7 @@
6567
<WarningLevel>4</WarningLevel>
6668
<DebugType>full</DebugType>
6769
<ErrorReport>prompt</ErrorReport>
70+
<Prefer32Bit>false</Prefer32Bit>
6871
</PropertyGroup>
6972
<ItemGroup>
7073
<Reference Include="System">

DataFreshUtil/DataFreshUtil.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
<StartupObject />
2222
<FileUpgradeFlags>
2323
</FileUpgradeFlags>
24-
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
24+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
2525
<UpgradeBackupLocation>
2626
</UpgradeBackupLocation>
2727
<OldToolsVersion>0.0</OldToolsVersion>
28+
<TargetFrameworkProfile />
2829
</PropertyGroup>
2930
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3031
<OutputPath>bin\Debug\</OutputPath>
@@ -45,6 +46,7 @@
4546
<WarningLevel>4</WarningLevel>
4647
<DebugType>full</DebugType>
4748
<ErrorReport>prompt</ErrorReport>
49+
<Prefer32Bit>false</Prefer32Bit>
4850
</PropertyGroup>
4951
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
5052
<OutputPath>bin\Release\</OutputPath>
@@ -65,6 +67,7 @@
6567
<WarningLevel>4</WarningLevel>
6668
<DebugType>none</DebugType>
6769
<ErrorReport>prompt</ErrorReport>
70+
<Prefer32Bit>false</Prefer32Bit>
6871
</PropertyGroup>
6972
<ItemGroup>
7073
<ProjectReference Include="..\DataFresh\DataFresh.csproj">
@@ -91,6 +94,9 @@
9194
</Compile>
9295
<Content Include="App.ico" />
9396
</ItemGroup>
97+
<ItemGroup>
98+
<None Include="app.config" />
99+
</ItemGroup>
94100
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
95101
<PropertyGroup>
96102
<PreBuildEvent />

DataFreshUtil/app.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/></startup></configuration>

TODO.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
1) Fix unit tests to create DatafreshSample DB automatically
2-
2) Clean up scripts in Sample Project
3-
3) Update to VS2008!
2+
2) Clean up scripts in Sample Project

TestConnectionStrings.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<connectionStrings>
2+
<properties>
3+
<userId>tf_user</userId>
4+
<password>1234</password>
5+
<server>localhost</server>
6+
<pooling>false</pooling>
7+
</properties>
8+
<sqlMasterDatabaseConnectionStringTemplate>user id={0};password={1};Initial Catalog=master;Server={2};pooling={3};</sqlMasterDatabaseConnectionStringTemplate>
9+
<sqlDataFreshSampleConnectionStringTemplate>user id={0};password={1};Initial Catalog=DataFreshSample;Server={2};pooling={3};</sqlDataFreshSampleConnectionStringTemplate>
10+
</connectionStrings>

TestHarnessExample/Scripts/Clean Database.bat

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Import-Module $PSScriptRoot\CredentialReader.psm1
2+
3+
$creds = Get-Credentials
4+
.\DataFreshUtil.exe -s $creds.Server -u $creds.UserId -p $creds.Password -d DataFreshSample -c REMOVE
5+
6+
pause

TestHarnessExample/Scripts/Create Database.bat

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Import-Module $PSScriptRoot\CredentialReader.psm1
2+
3+
$creds = Get-Credentials
4+
5+
osql.exe -S $creds.Server -U $creds.UserId -P $creds.Password -d DataFreshSample -i $PSScriptRoot\database.sql
6+
7+
.\DataFreshUtil.exe -s $creds.Server -u $creds.UserId -p $creds.Password -d DataFreshSample -c PREPARE
8+
9+
pause

0 commit comments

Comments
 (0)