1
- <?xml version =" 1.0" encoding =" utf-8" ?>
2
- <Project ToolsVersion =" 12.0" DefaultTargets =" Build" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
- <Import Project =" $(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition =" Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
+
4
3
<PropertyGroup >
5
- <Configuration Condition =" '$(Configuration)' == '' " >Debug</Configuration >
6
- <Platform Condition =" '$(Platform)' == '' " >AnyCPU</Platform >
7
- <ProjectGuid >{D88D1D75-0BBD-4E66-ABE0-A077C85DC302}</ProjectGuid >
8
- <OutputType >Library</OutputType >
9
- <AppDesignerFolder >Properties</AppDesignerFolder >
10
- <RootNamespace >Dapper.SimpleCRUD</RootNamespace >
11
- <AssemblyName >Dapper.SimpleCRUD</AssemblyName >
12
- <TargetFrameworkVersion >v4.0</TargetFrameworkVersion >
13
- <FileAlignment >512</FileAlignment >
14
- <TargetFrameworkProfile />
15
- <SolutionDir Condition =" $(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'" >..\</SolutionDir >
16
- <RestorePackages >true</RestorePackages >
17
- <PublishUrl >publish\</PublishUrl >
18
- <Install >true</Install >
19
- <InstallFrom >Disk</InstallFrom >
20
- <UpdateEnabled >false</UpdateEnabled >
21
- <UpdateMode >Foreground</UpdateMode >
22
- <UpdateInterval >7</UpdateInterval >
23
- <UpdateIntervalUnits >Days</UpdateIntervalUnits >
24
- <UpdatePeriodically >false</UpdatePeriodically >
25
- <UpdateRequired >false</UpdateRequired >
26
- <MapFileExtensions >true</MapFileExtensions >
27
- <ApplicationRevision >0</ApplicationRevision >
28
- <ApplicationVersion >1.0.0.%2a</ApplicationVersion >
29
- <IsWebBootstrapper >false</IsWebBootstrapper >
30
- <UseApplicationTrust >false</UseApplicationTrust >
31
- <BootstrapperEnabled >true</BootstrapperEnabled >
4
+ <TargetFrameworks >netstandard2.0;net45;net40</TargetFrameworks >
32
5
</PropertyGroup >
33
- <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " >
34
- <DebugSymbols >true</DebugSymbols >
35
- <DebugType >full</DebugType >
36
- <Optimize >false</Optimize >
37
- <OutputPath >bin\Debug\</OutputPath >
38
- <DefineConstants >DEBUG;TRACE</DefineConstants >
39
- <ErrorReport >prompt</ErrorReport >
40
- <WarningLevel >4</WarningLevel >
41
- <Prefer32Bit >false</Prefer32Bit >
42
- </PropertyGroup >
43
- <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " >
44
- <DebugType >pdbonly</DebugType >
45
- <Optimize >true</Optimize >
46
- <OutputPath >bin\Release\</OutputPath >
47
- <DefineConstants >TRACE</DefineConstants >
48
- <ErrorReport >prompt</ErrorReport >
49
- <WarningLevel >4</WarningLevel >
50
- <DocumentationFile >bin\Release\Dapper.SimpleCRUD.XML</DocumentationFile >
51
- <Prefer32Bit >false</Prefer32Bit >
52
- </PropertyGroup >
53
- <ItemGroup >
54
- <Reference Include =" Dapper, Version=1.40.0.0, Culture=neutral, processorArchitecture=MSIL" >
55
- <SpecificVersion >False</SpecificVersion >
56
- <HintPath >..\packages\Dapper.1.42\lib\net40\Dapper.dll</HintPath >
57
- </Reference >
6
+
7
+ <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
8
+ <PackageReference Include =" Microsoft.CSharp" Version =" 4.4.0" />
9
+ </ItemGroup >
10
+
11
+ <!-- .NET 4.5 references, compilation flags and build options -->
12
+ <ItemGroup Condition =" '$(TargetFramework)' == 'net45' " >
13
+ <Reference Include =" mscorlib" />
58
14
<Reference Include =" System" />
59
15
<Reference Include =" System.Core" />
60
- <Reference Include =" System.Xml.Linq" />
61
- <Reference Include =" System.Data.DataSetExtensions" />
62
16
<Reference Include =" Microsoft.CSharp" />
63
17
<Reference Include =" System.Data" />
18
+ <Reference Include =" System.Web" />
19
+ <Reference Include =" System.Drawing" />
20
+ <Reference Include =" System.Security" />
64
21
<Reference Include =" System.Xml" />
22
+ <Reference Include =" System.Configuration" />
65
23
</ItemGroup >
66
- <ItemGroup >
67
- <Compile Include =" SimpleCRUD.cs" />
68
- <Compile Include =" Properties\AssemblyInfo.cs" />
69
- </ItemGroup >
70
- <ItemGroup >
71
- <Service Include =" {508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
72
- </ItemGroup >
73
- <ItemGroup >
74
- <BootstrapperPackage Include =" .NETFramework,Version=v4.0" >
75
- <Visible >False</Visible >
76
- <ProductName >Microsoft .NET Framework 4 %28x86 and x64%29</ProductName >
77
- <Install >true</Install >
78
- </BootstrapperPackage >
79
- <BootstrapperPackage Include =" Microsoft.Net.Client.3.5" >
80
- <Visible >False</Visible >
81
- <ProductName >.NET Framework 3.5 SP1 Client Profile</ProductName >
82
- <Install >false</Install >
83
- </BootstrapperPackage >
84
- <BootstrapperPackage Include =" Microsoft.Net.Framework.3.5.SP1" >
85
- <Visible >False</Visible >
86
- <ProductName >.NET Framework 3.5 SP1</ProductName >
87
- <Install >false</Install >
88
- </BootstrapperPackage >
89
- <BootstrapperPackage Include =" Microsoft.SQL.Server.Compact.4.0" >
90
- <Visible >False</Visible >
91
- <ProductName >SQL Server Compact 4.0 SP1</ProductName >
92
- <Install >true</Install >
93
- </BootstrapperPackage >
94
- <BootstrapperPackage Include =" Microsoft.Windows.Installer.4.5" >
95
- <Visible >False</Visible >
96
- <ProductName >Windows Installer 4.5</ProductName >
97
- <Install >true</Install >
98
- </BootstrapperPackage >
24
+
25
+ <!-- .NET 4.0 references, compilation flags and build options -->
26
+ <ItemGroup Condition =" '$(TargetFramework)' == 'net40' " >
27
+ <Reference Include =" mscorlib" />
28
+ <Reference Include =" System" />
29
+ <Reference Include =" System.Core" />
30
+ <Reference Include =" Microsoft.CSharp" />
31
+ <Reference Include =" System.Data" />
32
+ <Reference Include =" System.Web" />
33
+ <Reference Include =" System.Drawing" />
34
+ <Reference Include =" System.Security" />
35
+ <Reference Include =" System.Xml" />
36
+ <Reference Include =" System.Configuration" />
99
37
</ItemGroup >
38
+
100
39
<ItemGroup >
101
- <None Include =" packages.config " />
40
+ <PackageReference Include =" Dapper " Version = " 1.50.2 " />
102
41
</ItemGroup >
103
- <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
104
- <Import Project =" $(SolutionDir)\.nuget\nuget.targets" />
105
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
106
- Other similar extension points exist, see Microsoft.Common.targets.
107
- <Target Name="BeforeBuild">
108
- </Target>
109
- <Target Name="AfterBuild">
110
- </Target>
111
- -->
112
- </Project >
42
+
43
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
44
+ <DefineConstants >NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants >
45
+ </PropertyGroup >
46
+
47
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'net45'" >
48
+ <DefineConstants >NET45;NETFULL</DefineConstants >
49
+ </PropertyGroup >
50
+
51
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'net40'" >
52
+ <DefineConstants >NET40;NETFULL</DefineConstants >
53
+ </PropertyGroup >
54
+
55
+ </Project >
0 commit comments