Skip to content

Commit

Permalink
feature: updating project file, adding Directory.build props and target
Browse files Browse the repository at this point in the history
  • Loading branch information
AECohn committed May 1, 2024
1 parent 02af652 commit 4add530
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 7 deletions.
21 changes: 21 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project>
<PropertyGroup>
<Version>1.0.0-local</Version>
<InformationalVersion>$(Version)</InformationalVersion>
<Authors>PepperDash Technologies</Authors>
<Company>PepperDash Technologies</Company>
<Product>PepperDash Samsung MDC Display</Product>
<Copyright>Copyright © 2023</Copyright>
<RepositoryUrl>https://github.com/PepperDash/epi-samsung-mdc-dispaly.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>Crestron; 4series</PackageTags>
<PackageOutputPath>../output</PackageOutputPath>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<None Include="..\LICENSE.md" Pack="true" PackagePath=""/>
<None Include="..\README.md" Pack="true" PackagePath=""/>
</ItemGroup>
</Project>
20 changes: 20 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<Project>
<ItemGroup>
<None Include="$(TargetDir)\$(TargetName).$(Version).cpz" Condition="$(ProjectType) == 'Program'">
<Pack>true</Pack>
<PackagePath>content;</PackagePath>
</None>
<None Include="$(PackageOutputPath)\$(TargetName).$(Version).cplz" Condition="$(ProjectType) == 'ProgramLibrary'">
<Pack>true</Pack>
<PackagePath>content;</PackagePath>
</None>
</ItemGroup>
<Target Name="Create CPLZ" AfterTargets="Build; Rebuild" Condition="$(ProjectType) == 'ProgramLibrary'">
<Message Text="Creating CPLZ"></Message>
<MakeDir Directories="$(PackageOutputPath)" Condition="!Exists($(PackageOutputPath))"></MakeDir>
<ZipDirectory SourceDirectory="$(TargetDir)" DestinationFile="$(PackageOutputPath)\$(TargetName).$(Version).cplz" Overwrite="true"/>
</Target>
<Target Name="Clean CPLZ" AfterTargets="AfterClean" Condition="$(ProjectType) == 'ProgramLibrary'">
<Delete Files="$(PackageOutputPath)\$(TargetName).$(Version).cplz"/>
</Target>
</Project>
10 changes: 5 additions & 5 deletions epi-display-samsung-mdc.4Series.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34728.123
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "epi-display-samsung-mdc.4Series", "src\epi-display-samsung-mdc.4Series.csproj", "{537EA1CC-E04F-4A88-B125-2A374DAFE3A8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "epi-display-samsung-mdc.4Series", "src\epi-display-samsung-mdc.4Series.csproj", "{BA640694-458F-4C90-8E1A-55A2B88B4E44}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{537EA1CC-E04F-4A88-B125-2A374DAFE3A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{537EA1CC-E04F-4A88-B125-2A374DAFE3A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{537EA1CC-E04F-4A88-B125-2A374DAFE3A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{537EA1CC-E04F-4A88-B125-2A374DAFE3A8}.Release|Any CPU.Build.0 = Release|Any CPU
{BA640694-458F-4C90-8E1A-55A2B88B4E44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BA640694-458F-4C90-8E1A-55A2B88B4E44}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BA640694-458F-4C90-8E1A-55A2B88B4E44}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BA640694-458F-4C90-8E1A-55A2B88B4E44}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
21 changes: 19 additions & 2 deletions src/epi-display-samsung-mdc.4Series.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<RootNamespace>Pepperdash.Essentials.Plugins.Display.Samsung.MDC</RootNamespace>
<TargetFramework>net472</TargetFramework>
<RootNamespace>Pepperdash.Essentials.Plugins.Display.Samsung.MDC</RootNamespace>
<Deterministic>false</Deterministic>
<AssemblyTitle>EPI.Samsung.MDC</AssemblyTitle>
<Company>PepperDash Technologies</Company>
<Description>This software is a plugin designed to work as a part of PepperDash Essentials for Crestron control processors. This plugin allows for control of Sony Bravia Displays.</Description>
<Copyright>Copyright 2024</Copyright>
<Version>1.0.0-local</Version>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<InformationalVersion>$(Version)</InformationalVersion>
<OutputPath>4Series\bin\$(Configuration)\</OutputPath>
<Authors>PepperDash Technologies</Authors>
<PackageId>Pepperdash.Essentials.Plugins.Display.Samsung.MDC</PackageId>
<PackageProjectUrl>https://github.com/PepperDash/epi-samsung-mdc-dispaly.git</PackageProjectUrl>
<PackageTags>crestron 4series samsung mdc</PackageTags>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>$(DefineConstants);SERIES4</DefineConstants>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 4add530

Please sign in to comment.