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
2018-08-06Merge pull request #6 from radical/merge-upstream-devHEADdevAnkit Jain
Merge upstream dev branch
2018-08-03Merge remote-tracking branch 'origin/dev' into devAnkit Jain
2018-06-02Removing NuGet.ProjectModel from the test projectAnkit Mishra
2018-06-01Merge pull request #48 from NuGet/dev-anmishr-removetestdependencyAnkit Mishra
Removing dependency on NuGet.ProjectModel
2018-06-01Removing dependency on NuGet.ProjectModelAnkit Mishra
2018-05-31Merge pull request #47 from NuGet/dev-anmishr-error-messageAnkit Mishra
Fixes: https://github.com/NuGet/Home/issues/6959 This PR improves the error experience for non project.json based projects. Primarily improves the error message for missing RID from - ` C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\NuGet\15.0\Microsoft.NuGet.targets(186,5): error : Your project.json doesn't have a runtimes section. You should add '"runtimes": { "win": { } }' to your project.json and then re-run NuGet restore. ` to - ` C:\Program Files (x86)\Microsoft Visual Studio\2017Stable\Enterprise\MSBuild\Microsoft\NuGet\15.0\Microsoft.NuGet.targets(186,5): error : Your project csproj file doesn't list 'win' as a targeted runtime. You should add 'win' to the "RuntimeIdentifiers" property in your project csproj file and the n re-run NuGet restore. [E:\NuGet.BuildTasks\src\Microsoft.NuGet.Build.Tasks.Tests\Microsoft.NuGet.Build.Tasks.Tests.csproj] ` Plus adding tests for non project.json based scenarios.
2018-05-31Address PR feedbackAnkit Mishra
2018-05-23Adding RID to test projectAnkit Mishra
2018-05-23Adding testsAnkit Mishra
2018-05-22Improving other messages that referenced project.jsonAnkit Mishra
2018-05-22Improving error message for RIDS in lock fileAnkit Mishra
2018-05-07Merge pull request #46 from tmeschter/BringRepoUpToDateTom Meschter
Bring repo up-to-date
2018-05-07Bring repo up-to-dateTom Meschter
Bring the repo up-to-date with changes to Microsoft.Nuget.targets that were unforunately made in the main VS repo rather than here.
2017-11-09Merge pull request #5 from radical/update-upstreamAnkit Jain
Merge upstream/dev
2017-11-01Merge remote-tracking branch 'origin/dev' into mdev-originAnkit
2017-10-30Remove ImportAfter for NuGet.targetsAndy Gerlicher
* Stop relying on ImportAfter extension point to be included in MSBuild. * MSBuild to explicitly load NuGet.targets in the common targets.
2017-10-20Merge pull request #43 from svetkereMS/dev-svetkere-fix504073Tom Meschter
Provide DT support target to return ResolvedNugetPackages task items …
2017-10-18remove spaceSvetlozar Keremidarski
2017-10-17Provide DT support target to return ResolvedNugetPackages task items from ↵Svetlozar Keremidarski
OOP node
2017-10-06Merge pull request #42 from NuGet/natidea-updateInjectionFlagNat Ayewah
Update Framework Injection check to support JavaScript UWP apps
2017-10-05Merge pull request #40 from tmeschter/IgnoreCaseWhenComparingPackageNamesTom Meschter
Ignore case when comparing package names
2017-09-29Update search for Windows.winmd.Nat Ayewah
This update adds a check of the target, because sometimes the properties used to determine the full source path are not set (e.g. in JavaScript UWP apps)
2017-09-29Ignore case when matching package namesTom Meschter
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/500532. We may need to vary which packages (or versions of packages) to pull in depending on the target framework. In the assets/lock file this is supported by the projectFileDependencyGroups section. This contains an entry for each supported framework, and the entry lists the packages used when targeting that framework. In addition, there is a "universal" entry (denoted by an empty name) for packages that are used in all frameworks. To determine which packages to list in Solution Explorer we match items in the relevant projectFileDependencyGroups item against the packages listed in the "libraries" section. However, we are currently doing this comparison in a case-sensitive manner, even though NuGet packages names are case-insensitive. This means that if the package name differs in case between the two, we won't find it and it won't show up in Solution Explorer. This is "just" a display issue, as the build and Intellisense are unaffected. Still, it is disconcerting for the user, as packages may suddenly "disappear" during package management operations.
2017-09-29Fix unit testsTom Meschter
A few of the .json asset files used in the unit tests were updated to refer to a newer version of Newtonsoft.Json, but there were a couple of problems with this. 1. The asset files specified to look for the binaries under the "Newtonsoft.Json\current" folder, rather than under the "Newtonsoft.Json\9.0.1" folder. This may be valid for real-world scenarios, but breaks our unit testing setup (which doesn't actually restore packages and basically fakes a file system). This is incidental to what the tests are trying to exercise, so this commit just replaces "current" with 9.0.1. 2. One of the tests verifies the path to a referenced assembly, but the expected path still had the old version number in it. This has now been fixed.
2017-09-29Reference MSBuild binaries through NuGetTom Meschter
This allows us to build the project on systems that only have Dev15 installed.
2017-09-29Merge pull request #41 from NuGet/natidea-mergevs2Nat Ayewah
Read DotNetNativeVersion and consume updated frameworks if it's set
2017-09-29Read DotNetNativeVersion and consume updated frameworks if it's setNat Ayewah
2017-09-08Merge pull request #4 from radical/update-to-upstreamAnkit Jain
Update to upstream `dev`
2017-09-08Merge remote-tracking branch 'origin/dev' into mono/devAnkit Jain
Update to track upstream and match VS 15.4 https://github.com/NuGet/NuGet.BuildTasks/pull/37#issuecomment-327855545
2017-09-07Merge pull request #38 from NuGet/natidea-merge-vsNat Ayewah
Port VS changes to dev branch
2017-09-07Update NewtonSoft.Json references and version to 9.0.1Nat Ayewah
2017-09-07Merge pull request #37 from NuGet/natidea-merge-dev15.1Nat Ayewah
Port changes in dev15.1 back to dev
2017-09-07Fix failing test due to changed casing because task uses the casing in the ↵Nat Ayewah
assets file following #35
2017-09-06Merge remote-tracking branch 'origin/dev15.1' into devNat Ayewah
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-03-06removed xproj project referenceZhi Li
2017-03-02Set RuntimeIdentifier same as BaseNuGetRuntimeIdentifier when set explicitlyAshish Jain (NUGET)
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.