Skip to content

Commit c4c8bcc

Browse files
authored
Merge pull request #31 from valadas/build-scripts
Fixes build scripts and references nuget packages where possible
2 parents 1c7a791 + c79e70e commit c4c8bcc

File tree

5 files changed

+36
-24
lines changed

5 files changed

+36
-24
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,3 +328,4 @@ ASALocalRun/
328328

329329
# MFractors (Xamarin productivity tool) working folder
330330
.mfractor/
331+
/_Installation/

Dnn.WebAnalytics.csproj

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,58 +24,68 @@
2424
<UseGlobalApplicationHostFile />
2525
<Use64BitIISExpress />
2626
<TargetFrameworkProfile />
27+
<NuGetPackageImportStamp>
28+
</NuGetPackageImportStamp>
2729
</PropertyGroup>
2830
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2931
<DebugSymbols>true</DebugSymbols>
3032
<DebugType>full</DebugType>
3133
<Optimize>false</Optimize>
32-
<OutputPath>bin\</OutputPath>
34+
<OutputPath>..\..\bin\</OutputPath>
3335
<DefineConstants>DEBUG;TRACE</DefineConstants>
3436
<ErrorReport>prompt</ErrorReport>
3537
<WarningLevel>4</WarningLevel>
3638
</PropertyGroup>
3739
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3840
<DebugType>pdbonly</DebugType>
3941
<Optimize>true</Optimize>
40-
<OutputPath>bin\</OutputPath>
42+
<OutputPath>..\..\bin\</OutputPath>
4143
<DefineConstants>TRACE</DefineConstants>
4244
<ErrorReport>prompt</ErrorReport>
4345
<WarningLevel>4</WarningLevel>
4446
</PropertyGroup>
4547
<ItemGroup>
46-
<Reference Include="DotNetNuke">
48+
<Reference Include="DotNetNuke, Version=8.0.0.809, Culture=neutral, processorArchitecture=MSIL">
49+
<HintPath>packages\DotNetNuke.Core.8.0.0.809\lib\net40\DotNetNuke.dll</HintPath>
4750
<SpecificVersion>False</SpecificVersion>
48-
<HintPath>..\..\bin\DotNetNuke.dll</HintPath>
4951
<Private>False</Private>
5052
</Reference>
51-
<Reference Include="DotNetNuke.Web">
53+
<Reference Include="DotNetNuke.Web, Version=8.0.0.809, Culture=neutral, processorArchitecture=MSIL">
54+
<HintPath>packages\DotNetNuke.Web.8.0.0.809\lib\net40\DotNetNuke.Web.dll</HintPath>
5255
<SpecificVersion>False</SpecificVersion>
53-
<HintPath>..\..\bin\DotNetNuke.Web.dll</HintPath>
5456
<Private>False</Private>
5557
</Reference>
56-
<Reference Include="DotNetNuke.Web.Client">
58+
<Reference Include="DotNetNuke.Web.Client, Version=8.0.0.809, Culture=neutral, processorArchitecture=MSIL">
59+
<HintPath>packages\DotNetNuke.Web.Client.8.0.0\lib\net40\DotNetNuke.Web.Client.dll</HintPath>
5760
<SpecificVersion>False</SpecificVersion>
58-
<HintPath>..\..\bin\DotNetNuke.Web.Client.dll</HintPath>
5961
<Private>False</Private>
6062
</Reference>
61-
<Reference Include="FiftyOne.Foundation">
63+
<Reference Include="DotNetNuke.WebUtility, Version=4.2.1.783, Culture=neutral, processorArchitecture=MSIL">
64+
<HintPath>packages\DotNetNuke.Web.8.0.0.809\lib\net40\DotNetNuke.WebUtility.dll</HintPath>
65+
<SpecificVersion>False</SpecificVersion>
66+
<Private>False</Private>
67+
</Reference>
68+
<Reference Include="FiftyOne.Foundation, Version=3.2.3.2, Culture=neutral, PublicKeyToken=e967ae578dabd98e, processorArchitecture=MSIL">
6269
<SpecificVersion>False</SpecificVersion>
6370
<HintPath>_LegacyReferences\FiftyOne.Foundation.dll</HintPath>
6471
<Private>True</Private>
6572
</Reference>
6673
<Reference Include="MaxMind.Db, Version=2.0.0.0, Culture=neutral, PublicKeyToken=66afa4cc5ae853ac, processorArchitecture=MSIL">
74+
<SpecificVersion>False</SpecificVersion>
6775
<HintPath>packages\MaxMind.Db.2.4.0\lib\net45\MaxMind.Db.dll</HintPath>
6876
<Private>True</Private>
6977
</Reference>
7078
<Reference Include="MaxMind.GeoIP2, Version=3.0.0.0, Culture=neutral, PublicKeyToken=66afa4cc5ae853ac, processorArchitecture=MSIL">
7179
<HintPath>packages\MaxMind.GeoIP2.3.0.0\lib\net45\MaxMind.GeoIP2.dll</HintPath>
80+
<SpecificVersion>False</SpecificVersion>
7281
<Private>True</Private>
7382
</Reference>
74-
<Reference Include="Microsoft.CSharp" />
75-
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
76-
<HintPath>packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
83+
<Reference Include="Microsoft.ApplicationBlocks.Data, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
84+
<HintPath>packages\DotNetNuke.Core.8.0.0.809\lib\net40\Microsoft.ApplicationBlocks.Data.dll</HintPath>
85+
<SpecificVersion>False</SpecificVersion>
7786
<Private>False</Private>
7887
</Reference>
88+
<Reference Include="Microsoft.CSharp" />
7989
<Reference Include="System" />
8090
<Reference Include="System.configuration" />
8191
<Reference Include="System.Data" />
@@ -182,7 +192,7 @@
182192
</ItemGroup>
183193
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
184194
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets" />
185-
<Import Project="$(MSBuildProjectDirectory)\MSBuild\Project.targets" />
195+
<Import Project="$(MSBuildProjectDirectory)\msbuild\Project.targets" />
186196
<ProjectExtensions>
187197
<VisualStudio>
188198
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
@@ -192,6 +202,13 @@
192202
</FlavorProperties>
193203
</VisualStudio>
194204
</ProjectExtensions>
205+
<Import Project="packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets" Condition="Exists('packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets')" />
206+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
207+
<PropertyGroup>
208+
<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>
209+
</PropertyGroup>
210+
<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'))" />
211+
</Target>
195212
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
196213
Other similar extension points exist, see Microsoft.Common.targets.
197214
<Target Name="BeforeBuild">
Binary file not shown.

msbuild/Project.targets

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<Target Name="BeforeBuild" Condition="'$(ConfigurationName)'=='Release'">
2323
<CallTarget Targets="SetVersionInfo" />
2424
</Target>
25-
<Target Name="AfterBuild">
25+
<Target Name="AfterBuild" Condition="'$(ConfigurationName)'=='Release'">
2626
<CallTarget Targets="DeployFiles" />
2727
</Target>
2828

@@ -43,7 +43,6 @@
4343

4444
<CallTarget Targets="RemoveZips" Condition="'$(ConfigurationName)'=='Release'" />
4545
<CallTarget Targets="ZipInstall" Condition="'$(ConfigurationName)'=='Release'" />
46-
<CallTarget Targets="CopyFilesToDotNetNuke" Condition="'$(DotNetNukeDir)'!=''" />
4746

4847
</Target>
4948

@@ -110,15 +109,6 @@
110109
<!-- cleanup -->
111110
<Delete Files="$(MSBuildProjectDirectory)\resources.zip"></Delete>
112111
</Target>
113-
<Target Name="CopyFilesToDotNetNuke">
114-
<!-- Copy assemblies and Debug Info to DNN Bin Dir -->
115-
<Message Text="MSBUILD: copying @(Assemblies) to $(DotNetNukeDir)\bin\" Importance="high"></Message>
116-
<CreateItem Include="$(BinDir)\*.pdb;$(BinDir)\*.dll;">
117-
<Output TaskParameter="Include" ItemName="Assemblies" />
118-
</CreateItem>
119-
<Copy SourceFiles="@(Assemblies)" DestinationFolder="$(DotNetNukeDir)\bin\" SkipUnchangedFiles="false" ContinueOnError="true" />
120-
<Message Text="MSBUILD: Copied @(Assemblies) to $(DotNetNukeDir)\bin\" Importance="high"></Message>
121-
</Target>
122112
</Project>
123113

124114

packages.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3+
<package id="DotNetNuke.Core" version="8.0.0.809" targetFramework="net472" />
4+
<package id="DotNetNuke.Web" version="8.0.0.809" targetFramework="net472" />
5+
<package id="DotNetNuke.Web.Client" version="8.0.0" targetFramework="net472" />
36
<package id="DynamicQueryable" version="2.0.25" targetFramework="net472" />
47
<package id="Jokenizer.Net" version="1.1.0" targetFramework="net472" />
58
<package id="MaxMind.Db" version="2.4.0" targetFramework="net472" />
69
<package id="MaxMind.GeoIP2" version="3.0.0" targetFramework="net472" />
710
<package id="Microsoft.CSharp" version="4.4.1" targetFramework="net472" />
11+
<package id="MSBuildTasks" version="1.5.0.235" targetFramework="net472" developmentDependency="true" />
812
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net472" />
913
<package id="System.Reflection.Emit" version="4.3.0" targetFramework="net472" />
1014
</packages>

0 commit comments

Comments
 (0)