Skip to content

Commit

Permalink
Merge pull request #31 from valadas/build-scripts
Browse files Browse the repository at this point in the history
Fixes build scripts and references nuget packages where possible
  • Loading branch information
valadas authored Aug 1, 2019
2 parents 1c7a791 + c79e70e commit c4c8bcc
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -328,3 +328,4 @@ ASALocalRun/

# MFractors (Xamarin productivity tool) working folder
.mfractor/
/_Installation/
43 changes: 30 additions & 13 deletions Dnn.WebAnalytics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,58 +24,68 @@
<UseGlobalApplicationHostFile />
<Use64BitIISExpress />
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<OutputPath>..\..\bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<OutputPath>..\..\bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="DotNetNuke">
<Reference Include="DotNetNuke, Version=8.0.0.809, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\DotNetNuke.Core.8.0.0.809\lib\net40\DotNetNuke.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\bin\DotNetNuke.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="DotNetNuke.Web">
<Reference Include="DotNetNuke.Web, Version=8.0.0.809, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\DotNetNuke.Web.8.0.0.809\lib\net40\DotNetNuke.Web.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\bin\DotNetNuke.Web.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="DotNetNuke.Web.Client">
<Reference Include="DotNetNuke.Web.Client, Version=8.0.0.809, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\DotNetNuke.Web.Client.8.0.0\lib\net40\DotNetNuke.Web.Client.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\bin\DotNetNuke.Web.Client.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="FiftyOne.Foundation">
<Reference Include="DotNetNuke.WebUtility, Version=4.2.1.783, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\DotNetNuke.Web.8.0.0.809\lib\net40\DotNetNuke.WebUtility.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="FiftyOne.Foundation, Version=3.2.3.2, Culture=neutral, PublicKeyToken=e967ae578dabd98e, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>_LegacyReferences\FiftyOne.Foundation.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MaxMind.Db, Version=2.0.0.0, Culture=neutral, PublicKeyToken=66afa4cc5ae853ac, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>packages\MaxMind.Db.2.4.0\lib\net45\MaxMind.Db.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MaxMind.GeoIP2, Version=3.0.0.0, Culture=neutral, PublicKeyToken=66afa4cc5ae853ac, processorArchitecture=MSIL">
<HintPath>packages\MaxMind.GeoIP2.3.0.0\lib\net45\MaxMind.GeoIP2.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
<Reference Include="Microsoft.ApplicationBlocks.Data, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\DotNetNuke.Core.8.0.0.809\lib\net40\Microsoft.ApplicationBlocks.Data.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Data" />
Expand Down Expand Up @@ -182,7 +192,7 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets" />
<Import Project="$(MSBuildProjectDirectory)\MSBuild\Project.targets" />
<Import Project="$(MSBuildProjectDirectory)\msbuild\Project.targets" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
Expand All @@ -192,6 +202,13 @@
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<Import Project="packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets" Condition="Exists('packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
Binary file not shown.
12 changes: 1 addition & 11 deletions msbuild/Project.targets
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<Target Name="BeforeBuild" Condition="'$(ConfigurationName)'=='Release'">
<CallTarget Targets="SetVersionInfo" />
</Target>
<Target Name="AfterBuild">
<Target Name="AfterBuild" Condition="'$(ConfigurationName)'=='Release'">
<CallTarget Targets="DeployFiles" />
</Target>

Expand All @@ -43,7 +43,6 @@

<CallTarget Targets="RemoveZips" Condition="'$(ConfigurationName)'=='Release'" />
<CallTarget Targets="ZipInstall" Condition="'$(ConfigurationName)'=='Release'" />
<CallTarget Targets="CopyFilesToDotNetNuke" Condition="'$(DotNetNukeDir)'!=''" />

</Target>

Expand Down Expand Up @@ -110,15 +109,6 @@
<!-- cleanup -->
<Delete Files="$(MSBuildProjectDirectory)\resources.zip"></Delete>
</Target>
<Target Name="CopyFilesToDotNetNuke">
<!-- Copy assemblies and Debug Info to DNN Bin Dir -->
<Message Text="MSBUILD: copying @(Assemblies) to $(DotNetNukeDir)\bin\" Importance="high"></Message>
<CreateItem Include="$(BinDir)\*.pdb;$(BinDir)\*.dll;">
<Output TaskParameter="Include" ItemName="Assemblies" />
</CreateItem>
<Copy SourceFiles="@(Assemblies)" DestinationFolder="$(DotNetNukeDir)\bin\" SkipUnchangedFiles="false" ContinueOnError="true" />
<Message Text="MSBUILD: Copied @(Assemblies) to $(DotNetNukeDir)\bin\" Importance="high"></Message>
</Target>
</Project>


4 changes: 4 additions & 0 deletions packages.config
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="DotNetNuke.Core" version="8.0.0.809" targetFramework="net472" />
<package id="DotNetNuke.Web" version="8.0.0.809" targetFramework="net472" />
<package id="DotNetNuke.Web.Client" version="8.0.0" targetFramework="net472" />
<package id="DynamicQueryable" version="2.0.25" targetFramework="net472" />
<package id="Jokenizer.Net" version="1.1.0" targetFramework="net472" />
<package id="MaxMind.Db" version="2.4.0" targetFramework="net472" />
<package id="MaxMind.GeoIP2" version="3.0.0" targetFramework="net472" />
<package id="Microsoft.CSharp" version="4.4.1" targetFramework="net472" />
<package id="MSBuildTasks" version="1.5.0.235" targetFramework="net472" developmentDependency="true" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net472" />
<package id="System.Reflection.Emit" version="4.3.0" targetFramework="net472" />
</packages>

0 comments on commit c4c8bcc

Please sign in to comment.