IoTSharp.csproj 13.2 KB
Newer Older
麦壳饼's avatar
麦壳饼 已提交
1 2
<Project Sdk="Microsoft.NET.Sdk.Web">

麦壳饼's avatar
麦壳饼 已提交
3
	<PropertyGroup>
麦壳饼's avatar
麦壳饼 已提交
4
		<TargetFramework>net6.0</TargetFramework>
5 6 7 8 9 10 11 12
		<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
		<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
		<IsPackable>false</IsPackable>
		<SpaRoot>ClientApp\</SpaRoot>
		<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
		<!-- Set this to true if you enable server-side prerendering -->
		<BuildServerSideRenderer>false</BuildServerSideRenderer>

麦壳饼's avatar
麦壳饼 已提交
13 14 15 16 17 18 19 20 21 22 23
		<IncludeOpenAPIAnalyzers>true</IncludeOpenAPIAnalyzers>
		<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
		<Company>MaiKebing</Company>
		<Product>IoTSharp</Product>
		<Authors>Maikebing</Authors>
		<PackageProjectUrl>https://github.com/IoTSharp/IoTSharp</PackageProjectUrl>
		<RepositoryUrl>https://github.com/IoTSharp/IoTSharp</RepositoryUrl>
		<PackageReleaseNotes>Open-source IoT Platform - Device management, data collection, processing and visualization.   https://www.iotsharp.net</PackageReleaseNotes>
		<Description>Open-source IoT Platform - Device management, data collection, processing and visualization.</Description>
		<PackageId>IoTSharp</PackageId>
		<UserSecretsId>18970590-05bf-4a1f-a70b-3c8a120d12cb</UserSecretsId>
麦壳饼's avatar
麦壳饼 已提交
24
		<Version>2.0.1</Version>
麦壳饼's avatar
麦壳饼 已提交
25 26 27 28 29 30 31 32
		<RepositoryType>git</RepositoryType>
		<PackageTags>IoT</PackageTags>
		<ApplicationIcon>Resources\Logo.ico</ApplicationIcon>
		<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
		<DockerComposeProjectPath>..\docker-compose.dcproj</DockerComposeProjectPath>
		<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
		<IsPackable>true</IsPackable>
		<PackageLicenseExpression></PackageLicenseExpression>
33
		<Copyright>Copyright 2018-2022  Yanhong Ma</Copyright>
麦壳饼's avatar
麦壳饼 已提交
34 35
		<AssemblyVersion>2.0.1.0</AssemblyVersion>
		<FileVersion>2.0.1.0</FileVersion>
麦壳饼's avatar
麦壳饼 已提交
36
		<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
37
		<PackageIcon>96x96.png</PackageIcon>
38
		<PackageReadmeFile>README.md</PackageReadmeFile>
麦壳饼's avatar
麦壳饼 已提交
39 40
	 
	 
41 42
		
		
麦壳饼's avatar
麦壳饼 已提交
43
	</PropertyGroup>
44

麦壳饼's avatar
麦壳饼 已提交
45 46 47 48
	<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
		<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
		<DocumentationFile>IoTSharp.xml</DocumentationFile>
		<NoWarn>1701;1702;1591</NoWarn>
49
		<OutputPath></OutputPath>
麦壳饼's avatar
麦壳饼 已提交
50 51
	</PropertyGroup>
	<ItemGroup>
麦壳饼's avatar
麦壳饼 已提交
52

麦壳饼's avatar
麦壳饼 已提交
53 54
		<PackageReference Include="AspNetCore.HealthChecks.Kafka" Version="6.0.1" />
		<PackageReference Include="AspNetCore.HealthChecks.MongoDb" Version="6.0.1" />
55
		<PackageReference Include="AspNetCore.HealthChecks.Network" Version="6.0.1" />
麦壳饼's avatar
麦壳饼 已提交
56 57 58 59 60 61 62
		<PackageReference Include="AspNetCore.HealthChecks.Rabbitmq" Version="6.0.1" />
		<PackageReference Include="AspNetCore.HealthChecks.Redis" Version="6.0.1" />
		<PackageReference Include="AspNetCore.HealthChecks.System" Version="6.0.1" />
		<PackageReference Include="AspNetCore.HealthChecks.UI" Version="6.0.2" />
		<PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="6.0.2" />
		<PackageReference Include="AspNetCore.HealthChecks.Uris" Version="6.0.2" />
		<PackageReference Include="AspNetCore.HealthChecks.Network" Version="6.0.1" />
63
		<PackageReference Include="CAP.Extensions" Version="1.0.32" />
麦壳饼's avatar
麦壳饼 已提交
64 65 66 67 68 69 70
		<PackageReference Include="DotNetCore.CAP" Version="6.0.0" />
		<PackageReference Include="DotNetCore.CAP.Dashboard" Version="6.0.0" />
		<PackageReference Include="DotNetCore.CAP.InMemoryStorage" Version="6.0.0" />
		<PackageReference Include="DotNetCore.CAP.Kafka" Version="6.0.0" />
		<PackageReference Include="DotNetCore.CAP.MongoDB" Version="6.0.0" />
		<PackageReference Include="DotNetCore.CAP.RabbitMQ" Version="6.0.0" />
		<PackageReference Include="DotNetCore.CAP.PostgreSql" Version="6.0.0" />
麦壳饼's avatar
麦壳饼 已提交
71 72 73 74
		<PackageReference Include="EasyCaching.Core" Version="1.4.1" />
		<PackageReference Include="EasyCaching.InMemory" Version="1.4.1" />
		<PackageReference Include="EasyCaching.LiteDB" Version="1.4.1" />
		<PackageReference Include="EasyCaching.Redis" Version="1.4.1" />
75
		<PackageReference Include="hyjiacan.pinyin4net" Version="4.1.0" />
76
		<PackageReference Include="InfluxDB.Client" Version="3.2.0" />
麦壳饼's avatar
麦壳饼 已提交
77
		<PackageReference Include="IoTSharp.CoAP.NET" Version="2.0.8" />
麦壳饼's avatar
麦壳饼 已提交
78
		<PackageReference Include="IoTSharp.X509Extensions" Version="1.4.27" />
麦壳饼's avatar
麦壳饼 已提交
79 80
		<PackageReference Include="Jdenticon-net" Version="3.1.2" />
		<PackageReference Include="Jdenticon.AspNetCore" Version="3.1.2" />
麦壳饼's avatar
麦壳饼 已提交
81
		<PackageReference Include="kimbus" Version="2.0.1" />
麦壳饼's avatar
麦壳饼 已提交
82
		<PackageReference Include="LiteDB" Version="5.0.11" />
83
		<PackageReference Include="MaiKeBing.CAP.ZeroMQ" Version="1.0.32" />
84
		<PackageReference Include="MaiKeBing.CAP.LiteDB" Version="1.0.32" />
85 86
		<PackageReference Include="Maikebing.Data.Taos" Version="2.0.357" />
		<PackageReference Include="Maikebing.HealthChecks.Taos" Version="2.0.357" />
87
		<PackageReference Include="MaiKeBing.HostedService.ZeroMQ" Version="1.0.32" />
麦壳饼's avatar
麦壳饼 已提交
88 89
		<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.0.1" />
		<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Features" Version="4.0.1" />
麦壳饼's avatar
麦壳饼 已提交
90
		<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.0.1" />
91
		<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Features" Version="4.0.1" />
麦壳饼's avatar
麦壳饼 已提交
92
		<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="4.0.1" />
93
		<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="4.0.1" />
麦壳饼's avatar
麦壳饼 已提交
94 95 96
		<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
		<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.14.0" />
		<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.1" />
97 98
		<PackageReference Include="MQTTnet" Version="3.1.1" />
		<PackageReference Include="MQTTnet.AspNetCore" Version="3.1.1" />
麦壳饼's avatar
麦壳饼 已提交
99
		<PackageReference Include="MQTTnet.AspNetCoreEx" Version="3.1.2" />
100
		<PackageReference Include="MQTTnet.Extensions.Rpc" Version="3.1.1" />
麦壳饼's avatar
麦壳饼 已提交
101
		<PackageReference Include="NetMQ" Version="4.0.1.6" />
102 103
		<PackageReference Include="Npgsql" Version="6.0.2" />
		<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.2" />
104
		<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite" Version="6.0.2" />
麦壳饼's avatar
麦壳饼 已提交
105
		<PackageReference Include="NSwag.AspNetCore" Version="13.15.5" />
106 107
		<PackageReference Include="PinusDB" Version="1.0.10" />
		<PackageReference Include="PinusDB.HealthChecks" Version="1.0.10" />
麦壳饼's avatar
麦壳饼 已提交
108
		<PackageReference Include="ProxyKit" Version="2.3.4" />
麦壳饼's avatar
麦壳饼 已提交
109
		<PackageReference Include="Quartz.Serialization.Json" Version="3.3.3" />
110
		<PackageReference Include="RestSharp" Version="107.0.3" />
111 112
		<PackageReference Include="Rin" Version="2.6.0" />
		<PackageReference Include="Rin.Mvc" Version="2.6.0" />
麦壳饼's avatar
麦壳饼 已提交
113
		<PackageReference Include="RulesEngine" Version="3.5.0" />
114
		<PackageReference Include="Savorboard.CAP.InMemoryMessageQueue" Version="6.0.0" />
麦壳饼's avatar
麦壳饼 已提交
115 116 117
		<PackageReference Include="Silkier" Version="1.0.424" />
		<PackageReference Include="Silkier.AspNetCore" Version="1.0.424" />
		<PackageReference Include="Silkier.EFCore" Version="1.0.424" />
118 119
		<PackageReference Include="SilkierQuartz" Version="5.0.309" />
		<PackageReference Include="SilkierQuartz.Plugins.RecentHistory" Version="5.0.309" />
麦壳饼's avatar
麦壳饼 已提交
120
		<PackageReference Include="System.CodeDom" Version="6.0.0" />
麦壳饼's avatar
麦壳饼 已提交
121
		<PackageReference Include="System.Collections" Version="4.3.0" />
麦壳饼's avatar
麦壳饼 已提交
122
		<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.15.0" />
麦壳饼's avatar
麦壳饼 已提交
123
		<PackageReference Include="System.ServiceModel.Primitives" Version="4.9.0" />
麦壳饼's avatar
麦壳饼 已提交
124 125 126 127 128 129 130 131
		<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" />
		<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.1" />
		<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="6.0.1" />
		<PackageReference Include="Microsoft.AspNetCore.Hosting.WindowsServices" Version="6.0.1" />
		<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" />
		<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.0" />
		<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="6.0.0" />
		<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="6.0.0" />
132
		<PackageReference Include="MQTTnet.Extensions.ManagedClient" Version="3.1.1" />
麦壳饼's avatar
麦壳饼 已提交
133 134 135 136 137 138 139
		<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="6.0.1" />
		<PackageReference Include="Microsoft.AspNetCore.ApiAuthorization.IdentityServer" Version="6.0.1" />
		<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="6.0.1" />
		<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.1" />
		<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="6.0.1" />
		<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.1" />
		<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.1" />
麦壳饼's avatar
麦壳饼 已提交
140
		<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" />
麦壳饼's avatar
麦壳饼 已提交
141
		<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.1">
142 143 144
		  <PrivateAssets>all</PrivateAssets>
		  <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
		</PackageReference>
145
		
麦壳饼's avatar
麦壳饼 已提交
146 147
	</ItemGroup>
	<ItemGroup>
148
		 
麦壳饼's avatar
麦壳饼 已提交
149
		<Compile Remove="Migrations\**" />
150
 
麦壳饼's avatar
麦壳饼 已提交
151
		<Content Remove="Migrations\**" />
152
	 
麦壳饼's avatar
麦壳饼 已提交
153
		<EmbeddedResource Remove="Migrations\**" />
154
	 
麦壳饼's avatar
麦壳饼 已提交
155 156 157 158
		<None Remove="Migrations\**" />
		<Content Remove="wwwroot\lib\jquery-validation-unobtrusive\LICENSE.txt" />
		<Content Remove="wwwroot\lib\jquery\LICENSE.txt" />
		<None Remove=".gitignore" />
159 160
		<None Remove="ca.crt" />
		<None Remove="ca.key" />
麦壳饼's avatar
麦壳饼 已提交
161 162
		<None Remove="healthchecksdb" />
		<None Remove="healthchecksdb-shm" />
麦壳饼's avatar
麦壳饼 已提交
163 164
		<None Remove="health_checks.db" />
		<None Remove="IoTSharp.db" />
麦壳饼's avatar
麦壳饼 已提交
165
		<None Remove="IoTSharp.xml" />
166 167
		<None Remove="server.crt" />
		<None Remove="server.key" />
麦壳饼's avatar
麦壳饼 已提交
168
		<None Remove="TelemetryStorage.db" />
麦壳饼's avatar
麦壳饼 已提交
169
		<_WebToolingArtifacts Remove="Properties\PublishProfiles\registry.hub.docker.com_iotsharp.pubxml" />
170 171 172 173 174 175 176
		<None Include="..\docs\images\96x96.png">
		  <Pack>True</Pack>
		  <PackagePath></PackagePath>
		</None>
		<None Include="..\LICENSE.txt">
		  <Pack>True</Pack>
		  <PackagePath></PackagePath>
麦壳饼's avatar
麦壳饼 已提交
177
		</None>
178 179 180 181
		<None Include="..\README.md">
		  <Pack>True</Pack>
		  <PackagePath>\</PackagePath>
		</None>
W
wq1234wq 已提交
182 183
		<None Include="wwwroot\fonts\fontawesome-webfont.svg" />
		<None Include="wwwroot\fonts\glyphicons-halflings-regular.woff2" />
麦壳饼's avatar
麦壳饼 已提交
184
	</ItemGroup>
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
	
	<ItemGroup>
		<!-- Don't publish the SPA source files, but do show them in the project files list -->
		<Content Remove="$(SpaRoot)**" />
		<None Remove="$(SpaRoot)**" />
		<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
	</ItemGroup>

	<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
		<!-- Ensure Node.js is installed -->
		<Exec Command="node --version" ContinueOnError="true">
			<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
		</Exec>
		<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
		<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
		<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
	</Target>

	<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
		<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
		<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
206 207
		<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build -- --prod --aot" />
		<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build -- --prod --aot" Condition=" '$(BuildServerSideRenderer)' == 'true' " />
208 209 210 211 212 213 214 215 216 217 218 219

		<!-- Include the newly-built files in the publish output -->
		<ItemGroup>
			<DistFiles Include="$(SpaRoot)dist\**; $(SpaRoot)dist-server\**" />
			<DistFiles Include="$(SpaRoot)node_modules\**" Condition="'$(BuildServerSideRenderer)' == 'true'" />
			<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
				<RelativePath>%(DistFiles.Identity)</RelativePath>
				<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
				<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
			</ResolvedFileToPublish>
		</ItemGroup>
	</Target>
220
	<ItemGroup>
221
	  <ProjectReference Include="..\IoTSharp.Data.InMemory\IoTSharp.Data.InMemory.csproj" />
麦壳饼's avatar
麦壳饼 已提交
222
	  <ProjectReference Include="..\IoTSharp.Data.MySQL\IoTSharp.Data.MySQL.csproj" />
麦壳饼's avatar
麦壳饼 已提交
223
	  <ProjectReference Include="..\IoTSharp.Data.Oracle\IoTSharp.Data.Oracle.csproj" />
224
	  <ProjectReference Include="..\IoTSharp.Data.PostgreSQL\IoTSharp.Data.PostgreSQL.csproj" />
麦壳饼's avatar
麦壳饼 已提交
225
	  <ProjectReference Include="..\IoTSharp.Data.Sqlite\IoTSharp.Data.Sqlite.csproj" />
麦壳饼's avatar
麦壳饼 已提交
226
	  <ProjectReference Include="..\IoTSharp.Data.SqlServer\IoTSharp.Data.SqlServer.csproj" />
227
	  <ProjectReference Include="..\IoTSharp.Data\IoTSharp.Data.csproj" />
麦壳饼's avatar
麦壳饼 已提交
228
	  <ProjectReference Include="..\IoTSharp.Interpreter\IoTSharp.Interpreter.csproj" />
229
	  <ProjectReference Include="..\IoTSharp.TaskAction\IoTSharp.TaskAction.csproj" />
230
	</ItemGroup>
W
wq1234wq 已提交
231 232 233
	<ItemGroup>
	  <Folder Include="ClientApp\" />
	</ItemGroup>
234
	<ProjectExtensions><VisualStudio><UserProperties clientapp_4package_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>
麦壳饼's avatar
麦壳饼 已提交
235
</Project>