Skip to content

Commit

Permalink
Use 4.6 binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Novotny committed Dec 9, 2017
1 parent 30238a3 commit ec476eb
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
5 changes: 4 additions & 1 deletion Core/Packages/PackageFileBase.cs
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Versioning;
using NuGet.Frameworks;
Expand Down Expand Up @@ -61,5 +62,7 @@ public IEnumerable<FrameworkName> SupportedFrameworks
yield break;
}
}

public DateTimeOffset LastWriteTime => DateTimeOffset.MinValue;
}
}
6 changes: 6 additions & 0 deletions NuGet.config
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NuGetBuilds" value="https://dotnet.myget.org/F/nuget-build/api/v3/index.json" />
</packageSources>
</configuration>
2 changes: 1 addition & 1 deletion PackageExplorer/PackageExplorer.csproj
Expand Up @@ -447,7 +447,7 @@
<Version>2.2.0</Version>
</PackageReference>
<PackageReference Include="NuGet.PackageManagement">
<Version>4.4.0</Version>
<Version>4.6.0-preview2-4709</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions PackageViewModel/PackagePart/PackageFile.cs
Expand Up @@ -4,8 +4,6 @@
using System.IO;
using System.Runtime.Versioning;
using System.Windows.Input;
using NuGet.Frameworks;
using NuGetPe;
using NuGetPackageExplorer.Types;
using NuGet.Packaging;

Expand Down Expand Up @@ -59,7 +57,7 @@ public FrameworkName TargetFramework
get { return _file.TargetFramework; }
}

public Stream GetStream()
public Stream GetStream()
{
return _file.GetStream();
}
Expand Down Expand Up @@ -97,6 +95,8 @@ public RelayCommand ReplaceCommand
private set;
}

public DateTimeOffset LastWriteTime => _file.LastWriteTime;

private void WatchPhysicalFile(PhysicalPackageFile physicalFile)
{
string folderPath = System.IO.Path.GetDirectoryName(physicalFile.SourcePath);
Expand Down
5 changes: 4 additions & 1 deletion PackageViewModel/PackagePart/PackageMetadataFile.cs
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.Versioning;
Expand Down Expand Up @@ -61,5 +62,7 @@ public IEnumerable<FrameworkName> SupportedFrameworks
{
get { return new FrameworkName[0]; }
}

public DateTimeOffset LastWriteTime => DateTimeOffset.MinValue;
}
}
2 changes: 1 addition & 1 deletion Types/Types.csproj
Expand Up @@ -13,7 +13,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Web.Xdt" Version="2.1.1" />
<PackageReference Include="NuGet.Packaging" Version="4.4.0" />
<PackageReference Include="NuGet.Packaging" Version="4.6.0-preview2-4709" />
<Reference Include="System.ComponentModel.Composition" />
</ItemGroup>

Expand Down

0 comments on commit ec476eb

Please sign in to comment.