Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/NuGet.BuildTasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-08-14Merge remote-tracking branch 'upstream/dev15.1' into dev15.1dev15.1Alexander Köplinger
2017-08-11Fix finding packages in lower-case dirs on case-sensitive ..Ankit Jain
.. filesystems. NuGet now restores packages in lower case directory names, but the build task `ResolveNuGetPackageAssets` constructs the path from package name and version, like: `Microsoft.NETCore.Portable.Compatibility/1.0.1` .. instead of `microsoft.netcore.portable.compatibility/1.0.1` This breaks builds on msbuild/mono on case-sensitive filesystems, eg. on Linux. The actual on-disk path is available in the lock/assets.json file as: ``` "libraries": { "Newtonsoft.Json/10.0.2": { ... "path": "newtonsoft.json/10.0.2", ... ``` So, we use that to look for the package. But fallback to the old method if this `"path"` is not available.
2017-04-18Merge pull request #2 from mono/devAlexander Köplinger
Merge branch dev into dev15.1
2017-04-18[mono] Don't use C# 7 out variables as mcs does not support it, and weAnkit Jain
.. still use that, eg, for some PR builders.
2017-04-16[mono] Fixup import pathsAnkit Jain
src/Microsoft.NuGet.Build.Tasks/ImportBeforeAfter/Microsoft.NuGet.Solution.ImportAfter.targets - this is not installed, so not updating the path. This was not installed for xbuild earlier, so staying in sync - This file gets installed by msbuild/mono for 15.0
2017-03-22Merge pull request #32 from tmeschter/FixCheckForManagedCodeTom Meschter
Add a missing scenario for Framework injection
2017-03-20Merge pull request #33 from tmeschter/DontShowProjectsAsPackagesTom Meschter
Don't show project references as package references in Solution Explorer
2017-03-20Don't show project references as package references in Solution ExplorerTom Meschter
When a NuGet restore generates a project.assets.json file it includes information not only on which NuGet packages are used by a project, but which other projects are referenced as well. When reading the list of dependencies from project.assets.json we currently make no distinction between a _package_ dependency versus a _project_ dependency. The result is that projects get included with the list of packages we show in the Solution Explorer under the References node--and since the language service already shows project references there, we end up with two nodes representing the same thing. The fix here is to filter out the project dependency in the build task. For every dependency, we check it against the items in the "library" section of the project.assets.json file. This specifies whether a particular "library" comes from a project or a package. If it does not explicitly state that it is a project, we assume it is a package. A unit test has been added to cover this scenario.
2017-03-20removed xproj project referenceZhi Li
2017-03-10Add a missing scenario for Framework injectionTom Meschter
Whenever a UWP app contains managed code we need to be sure to inject the .NET Core Framework assemblies. This is obviously the case when the app itself is written in C# or VB. However, we also need to handle the case where the app is written in C++ but references a WinRT component written in managed code. We detect the latter case by looking for the use of the union Windows.winmd assembly. We assume the assembly is in a path that ends with "UnionMetadata\Windows.winmd", but this isn't always the case. Sometimes the path will include the Windows SDK version number, like "UnionMetadata\10.0.15000.0\Windows.winmd"; in this case we won't realize that the framework is needed, and .NET Native compilation will fail. The fix here is to check for these other locations by making use of the WindowsSDK_UnionMetadataPath property.
2017-02-16Add skip imports conditions to Microsoft.NuGet ImportBefore and ImportAfter ↵Nat Ayewah
props/targets https://github.com/dotnet/sdk/pull/870 https://github.com/dotnet/roslyn-project-system/issues/1474 https://github.com/dotnet/roslyn-project-system/issues/1508
2017-01-12When no assets or lock file provided, fallback to project.assets.json fileAshish Jain (NUGET)
2016-12-29Using ProjectAssetsFile property in build targetsAshish Jain
2016-12-13Added RuntimeIdentifiers property for non-UAP projects for PackageReference ↵Ashish Jain
scenarios.
2016-11-12Implement code review feedbackTom Meschter
1. Simplify the new unit test a little bit. 2. Include all items in the located projectFileDependencyGroup whether or not they have a version number. It's not entirely clear why we were dropping items without a version number; the most likely explanation is that we expected all valid items to have a version number and wanted to exclude the "invalid" ones. Whatever the reason, we should include all of them.
2016-11-12Fix an issue in how we handle projectFileDependencyGroupsTom Meschter
In order to show the set of referenced packages in the Solution Explorer the build task digs through the items in the "projectFileDependencyGroups" section of the project.lock.json/project.assets.json file. Currently, we assume all of the packages we care about will be in the subsection denoted by the empty string, "". It turns out that this is not true. This subsection may not exist at all, and when it does it only holds the set of packages common to all targets. Target-specific packages will be in target-specific subsections. To fix this, we now try to look up the preferred target moniker and look up a subsection with that name. Then we add in the common packages.
2016-10-25Add support for project.assets.jsonTom Meschter
Update Microsoft.NuGet.targets to support project.assets.json files in addition to project.lock.json. If a project lock file has not been explicitly specified and there are no MyProj.project.json or project.json files next to the project, we'll look for $(BaseIntermediateOutputPath)project.assets.json instead.
2016-10-19Adding SolutionFile ImportsAfter targetJustin Emgarten
2016-09-30Updating import paths for props and targetsJustin Emgarten
2016-09-30Adding NuGet.targets import to ImportsAfterJustin Emgarten
2016-08-13Enable CopyNuGetImplementations for C++ like it is for ManagedBrian Fjeldstad
This will allow a Native library that references a managed component to copy the .Net framework
2016-07-14Merge remote-tracking branch 'upstream/dev' into devMikayla Hutchinson
2016-06-23Create README.mdHarikrishna Menon
2016-06-15Correct check for whether a package exists in a package folderJason Malinowski
2016-06-15Support reading package folder locations out of the lock fileJason Malinowski
The task previously was constructing the path to the user's packages location itself, which had various issues. It meant that if the restore was done with a different path, we don't know that. It also meant we didn't handle the paths specified in nuget.config. Now, if the paths are present in the lock file, we'll use that. Otherwise, we'll construct our old path as before. Any explicitly given path to the task is still used no matter what.
2016-04-14Disable shadow copying during xUnit testsJason Malinowski
2016-04-13Give a more graceful error message if the lock file is brokenJason Malinowski
2016-04-13Switch projects from DelaySign to PublicSignJason Malinowski
This now requires Visual Studio 2015 Update 2 to build.
2016-03-18Handle Mono's .mdb debug symbolsAlexander Köplinger
If they're present copy them like their .pdb counterparts.
2016-03-18Use Path.DirectorySeparatorChar instead of hardcoding backslashAlexander Köplinger
This allows using the code on Unix filesystems that use forward slash.
2016-02-11Pass references from projects to ResolveAssemblyReferences.AssemblyFilesJason Malinowski
If we pass a full path to ResolveAssemblyReferences.Assemblies, it will remove the file and not pass it along to the compiler. This is bad for project-to-project references, since the Visual Studio IDE still needs to know about them to make sure everything is wired up correctly. With this, we now pass project-to-project references to AssemblyFiles, matching the behavior of the ResolveProjectReferences target. There is a deeper question of whether or not we should pass all our full paths along to AssemblyFiles, but that's something which requires fairly extensive testing and might have back-compat problems that need to be dealt with.
2016-02-09Encode our test baselines as text rather than byte[] in the .resxJason Malinowski
2016-02-09Include PDBs in CopyLocal outputs if they existJason Malinowski
Fixes NuGet/Home#2009.
2016-02-09Update the unit test hook for File.Exists to better handle packagesJason Malinowski
We were previously returning true when asked if any file under the packages directory existed, even if it wouldn't actually exist if the package was really restored. Now we won't lie.
2016-02-09Use AssertHelpers.AssertCountOfJason Malinowski
2016-02-09Condition mention of BeforeGenerateProjectPriFile only if neededJason Malinowski
If you have a target that mentions another target in BeforeTargets, but your target won't run, MSBuild still gives a warning. The workaround is to condition the computation of BeforeTargets as well. There's a bigger question here about where to move the .NET Core injection to, since it's ugly that it lives here; I ignore that question for now. Fixes NuGet/Home#1814.
2016-02-09Fail more gracefully if a lock file is missing a MSBuild project pathJason Malinowski
This isn't a scenario we expect to happen, but if it were to we should probably not crash.
2016-02-08Resolve assets from project-produced NuGet packagesJason Malinowski
XProj projects being referenced from CSProj projects can be represented by NuGet as just another reference to a package, but with a different source location than the usual package cache. This adds the knowledge to detect these "packages" and compute the correct path.
2016-02-08Gracefully deal with a library in the project.lock.json not having filesJason Malinowski
2016-02-08Add a new task parameter which captures referenced projectsJason Malinowski
We need this so we can figure out where those projects are and some metadata about them, notably where their outputs are going to.
2016-02-08Refactor finding the "libraries" section for a package in the lock fileJason Malinowski
2016-02-07A couple of tests to ensure all TaskItem's are getting ↵Matt Wilkinson
NuGetIsFrameworkReference assigned and that all references are correctly tagged
2016-01-28Re-order referencing and condition removal of simple name references on the ↵Matt Wilkinson
NugetIsReferenceAssembly flag
2016-01-28Add NuGetIsFrameworkReference to all resolved referencesMatt Wilkinson
2016-01-27Fix casing of NuGetTestHelpers.csJason Malinowski
2016-01-27Directly throw exceptions from the build task when unit testingJason Malinowski
Previously we would let the build task catch exceptions, and would let the ResolvePackagesWithJsonFileContents re-throw a test exception if the build task returned false. This caused us to round-trip the rich exception information to a string, which is irritating. It's easier to not do that.
2016-01-27Tighten ExceptionFromResource to take only string message argumentsJason Malinowski
This simplifies some unit tests I want to write.
2016-01-15Use the locale information from NuGet to figure out TargetPathsJason Malinowski
The project.lock.json provides, for resource items, the culture which was pulled out of the path in the NuGet package. We can use this to construct target paths rather than re-figuring it out ourselves.
2016-01-13Create separate folders for each test and enable parallelizationJason Malinowski
2016-01-13Fix some indenting of the fileJason Malinowski