Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add json.net dependency, fix incremental build #351

Merged
merged 1 commit into from
Aug 9, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions build/Targets/ProducesNoOutput.Imports.targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
<TargetPath></TargetPath> <!-- Prevent projects referencing this from trying to pass us to the compiler -->
</PropertyGroup>

<Target Name="CoreCompile" /> <!-- Prevent Csc from being called -->
<Target Name="GenerateTargetFrameworkMonikerAttribute" /> <!-- Don't generate TFM attribute -->
<!-- Return this back when up-to-date bug is fixed (projects are being build everytime) -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a bug number tracking this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incremental build is covered by: #62

<!-- <Target Name="CoreCompile" /> --> <!-- Prevent Csc from being called -->
<!-- <Target Name="GenerateTargetFrameworkMonikerAttribute" /> --> <!-- Don't generate TFM attribute -->
<Target Name="RuntimeImplementationProjectOutputGroup" /> <!-- Group always attempts resolve runtime, regardless of <CopyNuGetImplementations>-->

</Project>
9 changes: 6 additions & 3 deletions build/Targets/ProducesNoOutput.Settings.targets
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<Import Project="Settings.targets" />
<!-- Return this back when up-to-date bug is fixed (projects are being build everytime) -->
<!--<Import Project="Settings.targets" />-->
<Import Project="VSL.Settings.targets" />

<PropertyGroup>
<IsDeployment Condition="'$(IsDeployment)' == ''">false</IsDeployment>
Expand All @@ -14,8 +16,9 @@
</PropertyGroup>

<PropertyGroup>
<CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory>
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory>
<!-- Return this back when up-to-date bug is fixed (projects are being build everytime) -->
<!--<CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory>
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory>-->
<OutputType>Library</OutputType>
</PropertyGroup>

Expand Down
5 changes: 4 additions & 1 deletion build/Targets/References.targets
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@
<Project>{e6796b97-d5c6-45b2-ae46-351d15dcfc71}</Project>
<Name>Metadata</Name>
</ProjectReference>

<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\src\Dependencies\Json.net\Json.net.csproj">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is needed for reading launch profiles?

<Project>{ca374af1-c983-4019-8fd0-01fa510c6e56}</Project>
<Name>Json.net</Name>
</ProjectReference>
</ItemGroup>
</When>
</Choose>
Expand Down
16 changes: 16 additions & 0 deletions src/Dependencies/Json.net/Json.net.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IsPortable>false</IsPortable>
</PropertyGroup>
<Import Project="..\..\..\build\Targets\ProducesNoOutput.Settings.targets" />
<PropertyGroup>
<ProjectGuid>{CA374AF1-C983-4019-8FD0-01FA510C6E56}</ProjectGuid>
<ProjectTypeGuids>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ProjectSystemLayer>Dependency</ProjectSystemLayer>
</PropertyGroup>
<ItemGroup>
<Content Include="project.json" />
</ItemGroup>
<Import Project="..\..\..\build\Targets\ProducesNoOutput.Imports.targets" />
</Project>
9 changes: 9 additions & 0 deletions src/Dependencies/Json.net/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"supports": { },
"dependencies": {
"Newtonsoft.Json": "8.0.3"
},
"frameworks": {
".NETFramework,Version=v4.6": { }
}
}
9 changes: 8 additions & 1 deletion src/ProjectSystem.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.25424.0
VisualStudioVersion = 15.0.25422.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeployTestDependencies", "DeployTestDependencies\DeployTestDependencies.csproj", "{37BA82E6-9ABD-4ACA-AA26-2DFD39A359A5}"
EndProject
Expand Down Expand Up @@ -81,6 +81,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Targets", "Targets", "{573B
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectSystemDogfoodSetup", "ProjectSystemDogfoodSetup\ProjectSystemDogfoodSetup.csproj", "{F9522F27-B9AC-4D6F-8F54-6A8BD4D33574}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Json.net", "Dependencies\Json.net\Json.net.csproj", "{CA374AF1-C983-4019-8FD0-01FA510C6E56}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -204,6 +206,10 @@ Global
{F9522F27-B9AC-4D6F-8F54-6A8BD4D33574}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F9522F27-B9AC-4D6F-8F54-6A8BD4D33574}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F9522F27-B9AC-4D6F-8F54-6A8BD4D33574}.Release|Any CPU.Build.0 = Release|Any CPU
{CA374AF1-C983-4019-8FD0-01FA510C6E56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CA374AF1-C983-4019-8FD0-01FA510C6E56}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CA374AF1-C983-4019-8FD0-01FA510C6E56}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CA374AF1-C983-4019-8FD0-01FA510C6E56}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -218,5 +224,6 @@ Global
{CF97A73F-F2F1-4893-960C-9C2B95738870} = {FD7E1AB8-9A44-4C31-A126-D6AF289C2C95}
{4D52C1E5-6F4B-4CDE-8149-AC374F018245} = {FD7E1AB8-9A44-4C31-A126-D6AF289C2C95}
{03AB838C-1B9D-4ECA-856F-476616C35F0C} = {FD7E1AB8-9A44-4C31-A126-D6AF289C2C95}
{CA374AF1-C983-4019-8FD0-01FA510C6E56} = {FD7E1AB8-9A44-4C31-A126-D6AF289C2C95}
EndGlobalSection
EndGlobal