Giter Club home page Giter Club logo

contrib.nuget's People

Contributors

dan2468 avatar enrigrossi avatar mnivet avatar oskaremil avatar romerod avatar somdoron avatar vladjerca avatar yannisgu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

contrib.nuget's Issues

Use Simple DnsCrypt Google translation can not be used.

Using Simple DnsCrypt, CHROME GOOGLE translate extensions cannot be used to translate web pages. Is China can directly visit https://translate.google.cn/ using DnsCrypt can not access the website. I am a user in mainland China, please improve Simple DnsCrypt.
qq 20180831120701
70
使用Simple DnsCrypt ,CHROME GOOGLE翻译扩展程序不能使用,无法翻译网页。**大陆是可以直接访问https://translate.google.cn/ 用了 DnsCrypt网站不能访问。我是**大陆用户,请你改进Simple DnsCrypt。

Some packages not copy output folder

We got the issue that not every output folder from our nuget packages will be copied. We treated every nuget package similar but one of the packages will not copy the content of the output folder,

in our nuspec file we added the following line
<file src="..\$id$.Tests\bin\$configuration$\$id$.Tests.dll" target="output"/>

nuget package contains a output folder and will be installed, but one of multiple packages will not be copied the output folder.
The package which is not working looks like
image

Do you have an idea why we face this issue?

Baseclass.Contrib.Nuget.Output.targets (73): An error has occurred during compilation

Please, have a look here: http://stackoverflow.com/questions/35176910/nuget-copy-native-dll-into-output

When I try to build project that contains nuget dependent on Baseclass.Contrib.Nuget.Output 2.1.0 I get following errors:

C:\Builds\1\MyProject\BuildName\src\MyProject\Packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets (73):
The source file for this compilation can be found at: "C:\Users\MHABLDSvc\AppData\Local\Temp\fd4f7f9d-59e3-4f6a-af8c-6a48deb7af3e.txt"

C:\Builds\1\MyProject\BuildName\src\MyProject\Packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets (73):
An error has occurred during compilation. error CS1705: Assembly 'Microsoft.Build.Utilities.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' uses 'Microsoft.Build.Framework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'Microsoft.Build.Framework, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

C:\Builds\1\MyProject\BuildName\src\MyProject\Packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets (73):
The "PackageFilter" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\MSBuild\14.0\bin\amd64" directory.

C:\Builds\1\MyProject\BuildName\src\MyProject\Packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets (73):
An error has occurred during compilation. error CS1705: Assembly 'Microsoft.Build.Utilities.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' uses 'Microsoft.Build.Framework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'Microsoft.Build.Framework, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

C:\Builds\1\MyProject\BuildName\src\MyProject\Packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets (73):
The "PackageFilter" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\MSBuild\14.0\bin\amd64" directory.

Visual Studio 2015 RC

Baseclass.Contrib.Nuget.Output "currently" fails on VS 2015 RC.
With the current CodeTaskFactory

<UsingTask TaskName="PackageFilter" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v$(MSBuildToolsVersion).dll">

it will generate the following path:

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Build.Tasks.v14.0.dll

The problem is that the file apparently no longer exists in MSBuild 14.

The following change will fix this problem in VS 2015:

<UsingTask TaskName="PackageFilter" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">

and produce:

C:\Program Files (x86)\MSBuild\14.0\Bin\Microsoft.Build.Tasks.Core.dll

Baseclass.Contrib.Nuget.GitIgnoreContent Install generates error with VS2015 / Nuget 3

With
Microsoft Visual Studio Enterprise 2015
Version 14.0.23107.0 D14REL

and Nuget Package manager 3.1.60724.766 Extension (Package Manager Console Host Version 3.1.1.0)

Running "Install-Package Baseclass.Contrib.Nuget.GitIgnoreContent" generates the following error:-

Executing script file 'C:\Users\a\project\packages\Baseclass.Contrib.Nuget.GitIgnoreContent.0.0.2\tools\init.ps1'
Unable to find type [NuGet.VisualStudio.IVsPackageInstallerEvents].
At C:\Users\a\project\packages\Baseclass.Contrib.Nuget.GitIgnoreContent.0.0.2\tools\GitIgnoreNugetContentRegisterEvents.ps1:7 char:1

  • $packageInstallerEvents = $componentModel.GetService([NuGet.VisualStu ...
  • - CategoryInfo          : InvalidOperation: (NuGet.VisualStu...InstallerEvents:TypeName) [], RuntimeException
    - FullyQualifiedErrorId : TypeNotFound
    
    

Register-ObjectEvent : Cannot bind argument to parameter 'InputObject' because it is null.
At C:\Users\a\project\packages\Baseclass.Contrib.Nuget.GitIgnoreContent.0.0.2\tools\GitIgnoreNugetContentRegisterEvents.ps1:10 char:64

  • ... ntRegistration = Register-ObjectEvent $packageInstallerEvents Package ...
  •                                       ~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Register-ObjectEvent], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.RegisterObjectEventCommand

Register-ObjectEvent : Cannot bind argument to parameter 'InputObject' because it is null.
At C:\Users\a\project\packages\Baseclass.Contrib.Nuget.GitIgnoreContent.0.0.2\tools\GitIgnoreNugetContentRegisterEvents.ps1:21 char:66

  • ... ntRegistration = Register-ObjectEvent $packageInstallerEvents Package ...
  •                                       ~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Register-ObjectEvent], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.RegisterObjectEventCommand

Successfully installed 'Baseclass.Contrib.Nuget.GitIgnoreContent 0.0.2' to project

My first guess is that this is due to a change in Nuget v3 as I have successfully used this package on a VS2013 / Nuget 2.8.6 based project

Exception System.IO.DirectoryNotFoundException in PackageRetrievalTask

Hi Daniel

I'm migrating from VS2015 to VS2017 with your newsest lib 2.4.1.
But unfortunaletly I'm geeting the following exception:

error MSB4018: The "PackageRetrievalTask" task failed unexpectedly.
error MSB4018: System.IO.DirectoryNotFoundException: Could not find a part of the path 'B:\dswork_ap\tfs\ds\Releases\20170405\Source\ds-software\packages'.
error MSB4018: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
error MSB4018: at System.IO.FileSystemEnumerableIterator1.CommonInit() error MSB4018: at System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler1 resultHandler, Boolean checkHost) error MSB4018: at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption) error MSB4018: at Baseclass.Contrib.Nuget.Output.Build.PackageRetrievalTask.GetFilteredProjectNugetPackages(NugetPackageSource currentNugetPackageSource, HashSet1 usedNugetPackages)
error MSB4018: at Baseclass.Contrib.Nuget.Output.Build.PackageRetrievalTask.Execute()
error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()

I think your method "GetFilteredProjectNugetPackages" has a bug:

private IEnumerable<string> GetFilteredProjectNugetPackages(NugetPackageSource currentNugetPackageSource, HashSet<string> usedNugetPackages)
{
    string str;
    switch (currentNugetPackageSource)
    {
        case NugetPackageSource.PackagesConfig:
            str = Path.Combine(this.SolutionPath, "packages");
            break;

        case NugetPackageSource.ProjectFile:
            str = Environment.GetEnvironmentVariable("NUGET_PACKAGES") ?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), @".nuget\packages");
            break;

        default:
            throw new ArgumentOutOfRangeException("currentNugetPackageSource", currentNugetPackageSource, null);
    }
    return (from p in Directory.EnumerateFiles(str, "*.nupkg", SearchOption.AllDirectories)
        where usedNugetPackages.Contains(Path.GetFileNameWithoutExtension(p).ToLowerInvariant())
        select p).ToArray<string>();
}

str = Path.Combine(this.SolutionPath, "packages");
Here you assume the folder "packages" always exists under the solution directory, but that can be changed by a file named "nuget.config":

In my case it looks like this:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <solution>
    <add key="disableSourceControlIntegration" value="true" />
  </solution>
  <config>
    <add key="repositorypath" value="..\..\..\Packages" />
  </config>
</configuration>

With this file I relink the package folder to a new destination and therefore there is no folder "packages" under the solution dir and we are getting the exception "DirectoryNotFoundException" as described above.

Any solution for this?

Thank you very much for your support
Andrej

Error initializing task PackageFilter: Not registered task PackageFilter.

We're getting an error from TravisCI trying to build an open source library (xbuild / mono)
https://travis-ci.org/QuantConnect/Lean/builds/122678825

Xarmin forums mention this but don't have a solution,
https://forums.xamarin.com/discussion/56597/error-initializing-task-packagefilter-not-registered-task-packagefilter-what-does-this-mean

The error is:
../Baseclass.Contrib.Nuget.Output.2.1.0/build/net40/Baseclass.Contrib.Nuget.Output.targets (CollectNugetOutputFiles target) -> error : Error initializing task PackageFilter: Not registered task PackageFilter.

We can't remove it from our project. I'm hoping you have a fix or work around we can use.

Thanks!

Clean does not remove the files created by Contrib.Nuget.Output

.. it really should since the main purpose (IMHO) of using a package like this is that you have some kind of runtime loading of resources, perhaps dynamic assembly discovery and then you don't want surplus assemblies from an older version of the Nuget dependency lying around

Other NuGet Dependencies

This is more of a question than an issue.

We are considering this as a solution to the MEF reference problem, where you want to get some dll files into the bin{configuration} folder without adding references to the project.
Using this works fine for the files in the package.

However the packages we create are dependent on other packages (our own or from nuget) which also need to be included in the bin{configuration} folder.
Is there a good solution to get this working nicely?

nuget pack my.csproj -build => crahes

Hello,

when I try to build my project with nuget.exe (2.8.5 or 3 beta) I get the following error:

D:\git\myRepos\packages\Baseclass.Contrib.Nuget.Output.2.0.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(74,2): error MSB4174: The task factory "CodeTaskFactory" could not be found in the assembly "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Build.Tasks.v12.0.dll".

Build works fine with Visual Studio 2013 U4 and Msbuild.exe /p:VisualStudioVersion=12.0 /property:Configuration=Release /t:Rebuild my.sln

Thanks for any suggestions.
Simon

The "PackageRetrievalTask" task failed unexpectedly

Using the latest prerelease version of the nuget in both VS 2015 & VS 2017 I have the following error during compilation.

The "PackageRetrievalTask" task failed unexpectedly.
1>D:\CUSTOM_PATH\packages\Baseclass.Contrib.Nuget.Output.2.3.0-vs20172\build\net40\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: System.IO.DirectoryNotFoundException: Could not find a part of the path blablabla\packages'.

CUSTOM_PATH & blablabla above are obfuscation of real paths.

Please note that we're sharing packages at the root of our TFS branch.
The task seems to look for packages in the solution folder.

We do have a repositoryPath configured in a nuget.config at solution level:
<add key="repositorypath" value="$\..\..\..\..\..\packages" />

.csproj included.
csproj.zip

Baseclass.contrib.nuget.output 2.3.0 fails when building using dotnet build

Hi,

I have an issue when building an VS2017 project using the dotnet-build command-line.

This is what I have in the csproj file:

<PropertyGroup>
    <TargetFramework>net452</TargetFramework>
    <AssemblyName>JW.project.ProjectName</AssemblyName>
    <OutputType>Exe</OutputType>
    <PackageId>JW.project.ProjectName</PackageId>
</PropertyGroup>

<ItemGroup>
    <PackageReference Include="Baseclass.Contrib.Nuget.Output" Version="2.3.0" />
    ....
</ItemGroup>

VS2017 builds it but when executing dotnet build path\JW.project.ProjectName\JW.project.ProjectName.csproj --configuration Release I get this:

C:\Users\xxxxxxx\.nuget\packages\baseclass.contrib.nuget.output\2.3.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(66,5): 
error MSB4018: The "PackageRetrievalTask" task failed unexpectedly. [C:\src\Projects\src\JW.project.ProjectName\JW.project.ProjectName.csproj]
error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The specified file was not found. [C:\src\Projects\src\JW.project.ProjectName\JW.project.ProjectName.csproj]
error MSB4018: File name: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' [C:\src\Projects\src\JW.project.ProjectName\JW.project.ProjectName.csproj]
error MSB4018:    at Baseclass.Contrib.Nuget.Output.Build.PackageRetrievalTask.Execute() [C:\src\Projects\src\JW.project.ProjectName\JW.project.ProjectName.csproj]
error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\src\Projects\src\JW.project.ProjectName\JW.project.ProjectName.csproj]
error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__25.MoveNext() [C:\src\Projects\src\JW.project.ProjectName\JW.project.ProjectName.csproj]
    0 Warning(s)
    1 Error(s)

I can't figure out why it can't find it.

Steps to reproduce

  1. In VS2017, create a console app (.Net framework) targeting Net461
  2. Add Baseclass.Contrib.Nuget.Output to it
  3. Build the project using the command-line (dotnet build)

It will raise the FileNotFoundException.

Clean gets slowed down, when many files exist in bin\debug

Hello,

we have a visual studio project, consisting of many different assemblies (>30) together with some binary files. The assemblies are normal nuget packages or referenced projects. However, the approx. 50 binary files get loaded from a nuget packet and get copied via Nuget Output (version 2.3.0) into our bin\debug directory. Furthermore we have thousands of log files within that folder that get created, when running/debugging the visual studio project.

Whenever we clean now out project, nuget output tries to remove all files it copied before. Thereby it seams that it can not find the *.dummy files. As a result it seams like VS is searching through the whole \bin\debug directory. So it searches for every single binary file added by Nuget.Output through thousands of files/folders.
It sums up to about 15 seconds for every project that contains this many log files together with a package referencing NugetOutput.

I suspect, this might be related to the following line:

<RemoveDir Condition="'@(EmptyCheck)' == '' And '%(NugetOutputFiles.RecursiveDir)' != ''" Directories="$(OutDir)%(NugetOutputFiles.RecursiveDir)" />

Do you know any kind of fix, or do you have a better solution? Do you really need to iterate over every file within bin\debug?

Thank you in advance!

Edit: The build jobs 'Clean' theirby shows on highest log level the following Output (for every nuget-output binary):

46>Building target "CleanEmptyFolder" completely.
46>Output file "....MyBinary1.bin.Dummy" does not exist. 
46>Task "RemoveDir" skipped, due to false condition; ('@(EmptyCheck)' == ''' AND '%(NugetOutputFiles.RecursiveDir)'!='') was evealuated as ('bin\debug\file1.abc;bin\debug\LogFolder1\log\Today\Afternoon\theLogFile.txt; [... I shortened the >1.000.000 char long line here...]')

bug没有获取到服务器闪退

全新安装或者清理了垃圾文件后,同时高级设置-fallback resolvers 设置 127.0.0.1:53的时候启动simpleDNSCrypt点击服务器卡顿然后直接闪退。

Installation of package fails, when a file has no file extension

I had a package with an executable and an file called "LICENSE". Packaging worked, but during installation a file access error occured and it was not possible to install Baseclass.Contrib.Nuget. The error message indicated a download error.

However, the package content showed: The file was not a member of the output folder, but a file output existed with the similar size. So it helped to add a file extension and rename the file as License.txt. Since then, the file is a member again and its possible to install the package.

However, it would be great, when your package could support files without file-extensions.

Thank you!

A question - not an issue

I start DNScrypt from a batch file placed in the Start up folder because I don't see an option to start on boot. Am I missing something?

PackageRetreivalTask failing as it does not appear to be reading repositoryPath correctly

When compiling our solution a windows forms project (using packages.config) that references a nuget package that depends on Baseclass.Contrib.Nuget.Output is throwing the following error. Having read through the code on here I noticed the system expects the nuget.config to be in the same directory as the solution. I have added a nuget.config in this directory with the following section <config> <add key="repositorypath" value=".packages" /> </config>

Despite this it seems to be looking for a directory "packages", despite us using ".packages" (the parent directory appears to be correct) meaning we get this error when building:

42>"E:\KK\src\User Experience\Platform Tools\KKBO\KnowledgeKube.BackOffice.csproj" (Build;BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;DebugSymbolsProjectOutputGroup;DebugSymbolsProjectOutputGroupDependencies;DocumentationProjectOutputGroup;DocumentationProjectOutputGroupDependencies;SatelliteDllsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies;SGenFilesOutputGroup;SGenFilesOutputGroupDependencies target) (1) -> 42>(CollectNugetOutputFiles target) -> 42> E:\KK\src\.packages\Baseclass.Contrib.Nuget.Output.2.4.3\build\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: The "PackageRetrievalTask" task failed unexpectedly. 42>E:\KK\src\.packages\Baseclass.Contrib.Nuget.Output.2.4.3\build\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: System.IO.DirectoryNotFoundException: Could not find a part of the path 'E:\KK\src\packages'. 42>E:\KK\src\.packages\Baseclass.Contrib.Nuget.Output.2.4.3\build\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 42>E:\KK\src\.packages\Baseclass.Contrib.Nuget.Output.2.4.3\build\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at System.IO.FileSystemEnumerableIterator1.CommonInit()
42>E:\KK\src.packages\Baseclass.Contrib.Nuget.Output.2.4.3\build\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler1 resultHandler, Boolean checkHost)
42>E:\KK\src.packages\Baseclass.Contrib.Nuget.Output.2.4.3\build\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption)
42>E:\KK\src.packages\Baseclass.Contrib.Nuget.Output.2.4.3\build\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at Baseclass.Contrib.Nuget.Output.Build.NugetPackageManager.GetFilteredProjectNugetPackages(NugetPackageSource currentNugetPackageSource, HashSet1 usedNugetPackages) 42>E:\KK\src\.packages\Baseclass.Contrib.Nuget.Output.2.4.3\build\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at Baseclass.Contrib.Nuget.Output.Build.NugetPackageManager.TryGetUsedPackagesDependendingOnNugetOutput(ITaskItem[]& packages) 42>E:\KK\src\.packages\Baseclass.Contrib.Nuget.Output.2.4.3\build\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at Baseclass.Contrib.Nuget.Output.Build.PackageRetrievalTask.Execute() 42>E:\KK\src\.packages\Baseclass.Contrib.Nuget.Output.2.4.3\build\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() 42>E:\KK\src\.packages\Baseclass.Contrib.Nuget.Output.2.4.3\build\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

Cant make it work

I would really love to see this work, but no dice. Using VS 2013 Update 3, NuGet version 2.8.50313.46.

Testing a Console app, with directory for solution. TestPackage and this package installed, and ouput folder in the package contains desired file, but the file is never copied across to the project

Baseclass.Contrib.Nuget.Output 2.3.0 fails on msbuild package

Hi,

I'm having an issue that when trying to package my project for deploy, like msbuild myproject.csproj /T:package /P:Configuration=Debug.
An error ocurre in the Baseclass.Contrib.Nuget.Output.targets file with the error:

The "PackageRetrievalTask" task failed unexpectedly.
System.ArgumentException: Illegal characters in path.
   at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
   at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String[] fullPathList, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption)
   at Baseclass.Contrib.Nuget.Output.Build.PackageRetrievalTask.GetFilteredProjectNugetPackages(NugetPackageSource currentNugetPackageSource, HashSet`1 usedNugetPackages)
   at Baseclass.Contrib.Nuget.Output.Build.PackageRetrievalTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

The thing is, if I downgrade to 2.1.0 it works. But then VS2017 issue.

Licensing

Hey

What license is this code is available under?

Cheers

Matt

bug没有获取到服务器闪退

全新安装或者清理了垃圾文件后,同时高级设置-fallback resolvers 设置 127.0.0.1:53的时候启动simpleDNSCrypt点击服务器卡顿然后直接闪退。

error MSB4018: The "PackageRetrievalTask" task failed unexpectedly.

This issue looks to be related to these issues.
#44
#34

When using MSBuild to build a PROJECT FILE the PackageRetrievalTask failes because the SolutionPath is set to SolutionPath= *Undefined*

MSBUILD COMMAND:
msbuild "C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj" /t:Build /p:Platform=AnyCPU /p:Configuration=Release /p:GenerateSerializationAssemblies=On /p:AutoParameterizationWebConfigConnectionStrings=False /fl /flp:logfile=msbuild.log;verbosity=diagnostic

MSBUILD LOG
Target "CollectNugetOutputFiles: (TargetId:56)" in file "C:\workspace\mastercbfef5a5\src\packages\Baseclass.Contrib.Nuget.Output.2.4.1\build\net40\Baseclass.Contrib.Nuget.Output.targets" from project "C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj" (target "CopyToOutput" depends on it):
Task "Message" (TaskId:23)
Task Parameter:Text=Collecting NuGet output files for pennfoster-oauth2: (TaskId:23)
Collecting NuGet output files for pennfoster-oauth2: (TaskId:23)
Done executing task "Message". (TaskId:23)
Using "PackageRetrievalTask" task from assembly "C:\workspace\mastercbfef5a5\src\packages\Baseclass.Contrib.Nuget.Output.2.4.1\build\net40\Baseclass.Contrib.Nuget.Output.Build.dll".
Task "PackageRetrievalTask" (TaskId:24)
Task Parameter:ProjectName=pennfoster-oauth2 (TaskId:24)
Task Parameter:ProjectDirectory=C:\workspace\mastercbfef5a5\src\pennfoster-oauth2 (TaskId:24)
Task Parameter:ProjectFullPath=C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj (TaskId:24)
Task Parameter:SolutionPath= *Undefined* (TaskId:24)

ERRORS BEING GENERATED ( see Illegal characters in path )

C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj" (Build target) (1) ->
(CollectNugetOutputFiles target) ->
C:\workspace\mastercbfef5a5\src\packages\Baseclass.Contrib.Nuget.Output.2.4.1\build\net40\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: The "PackageRetrievalTask" task failed unexpectedly. [C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj]
C:\workspace\mastercbfef5a5\src\packages\Baseclass.Contrib.Nuget.Output.2.4.1\build\net40\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: System.ArgumentException: Illegal characters in path. [C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj]
C:\workspace\mastercbfef5a5\src\packages\Baseclass.Contrib.Nuget.Output.2.4.1\build\net40\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath) [C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj]
C:\workspace\mastercbfef5a5\src\packages\Baseclass.Contrib.Nuget.Output.2.4.1\build\net40\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String[] fullPathList, Boolean checkForDuplicates, Boolean needFullPath) [C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj]
C:\workspace\mastercbfef5a5\src\packages\Baseclass.Contrib.Nuget.Output.2.4.1\build\net40\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler1 resultHandler, Boolean checkHost) [C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj]
C:\workspace\mastercbfef5a5\src\packages\Baseclass.Contrib.Nuget.Output.2.4.1\build\net40\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption) [C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj]
C:\workspace\mastercbfef5a5\src\packages\Baseclass.Contrib.Nuget.Output.2.4.1\build\net40\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at Baseclass.Contrib.Nuget.Output.Build.PackageRetrievalTask.GetFilteredProjectNugetPackages(NugetPackageSource currentNugetPackageSource, HashSet`1 usedNugetPackages) [C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj]
C:\workspace\mastercbfef5a5\src\packages\Baseclass.Contrib.Nuget.Output.2.4.1\build\net40\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at Baseclass.Contrib.Nuget.Output.Build.PackageRetrievalTask.Execute() [C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj]
C:\workspace\mastercbfef5a5\src\packages\Baseclass.Contrib.Nuget.Output.2.4.1\build\net40\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj]
C:\workspace\mastercbfef5a5\src\packages\Baseclass.Contrib.Nuget.Output.2.4.1\build\net40\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() [C:\workspace\mastercbfef5a5\src\pennfoster-oauth2\pennfoster-oauth2.csproj]

bug没有获取到服务器闪退

全新安装或者清理了垃圾文件后,同时高级设置-fallback resolvers 设置 127.0.0.1:53的时候启动simpleDNSCrypt点击服务器卡顿然后直接闪退。

Possibility to change ouput directory

Hi there and thanks for this awesome Nuget Extension! It did solve exactly my problem. That is almost ;-)
I have a plugin architecture, where in one case a plugin requires native libraries. So I used your extension to copy the native libraries alongside the plugin's output directory. As it turns out the plugin uses a 3rd party library which searches for its native libraries only in the top level execution directory.
Due to my directory structure the plugin and hence the native libraries reside in subfolders from that top level directory.

So what would be really great to have is the possiblity to configure the output directory in a relative way to the building directory of the project.

Is that possible?

Cheers,
Christian

fails to clean old data from /packages when updating from '2.2.0-xbuild02' to '2.3.0'

In Visual Studio 2017, I've used the built-in NuGet to update packages from '2.2.0-xbuild02' to '2.3.0', but after that I couldn't build the project anymore ("PackageRetrievalTask" fails).

The problem is that in /packages, after update, the folder "Baseclass.Contrib.Nuget.Output.2.2.0-xbuild02" and the file "Baseclass.Contrib.Nuget.Output.2.2.0-xbuild02.deleteme" do not get deleted due to the problem shown in the pic.

nuget

Removing folder and file manually and rebuilding solves all issues.

This could be the problem at the bottom of issues #33 - #34 - #35

Restore not working

Hi,
Thanks for an absolutely fantastic and life saving extension to NuGet.

I'm having trouble with a fairly simple NuGet package that has one dll file in the Output target folder. Also im depending on Baseclass.Contrib.Nuget.Output version >= 1.0.7. When opening up a csproj file that has a reference to this NuGet package and just builds, nuget does a package "restore", but the file inside the NuGet package is not copied. If I remove the NuGet package and then reinstall it via the Visual Studio gui everything works and the file is copied to the output folder.

Any idea what this might be? I saw you fixed a "restore bug" earlier, perhaps something similar?

I'm using VS2013 and the build in version of nuget (from about box) is "NuGet Package Manager 2.8.50313.46"

I'm hoping not to have to create a reproducer, but if you're unable to reproduce I could probably make one.

Cannot install in MonoAndroid or WindowsPhone project

I'm trying to get Baseclass.Contrib.Nuget.Output installed in a Xamarin Android and Windows Phone project in Visual Studio 2015 due to a dependency. Unfortunately that does not work:

PM> Get-Project -all | Install-Package Baseclass.Contrib.Nuget.Output
Attempting to gather dependencies information for package 'Baseclass.Contrib.Nuget.Output.2.1.0' with respect to project 'SocketTestSap.Droid', targeting 'MonoAndroid,Version=v5.0'
Attempting to resolve dependencies for package 'Baseclass.Contrib.Nuget.Output.2.1.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Baseclass.Contrib.Nuget.Output.2.1.0'
Resolved actions to install package 'Baseclass.Contrib.Nuget.Output.2.1.0'
Install failed. Rolling back...
Package 'Baseclass.Contrib.Nuget.Output 2.1.0' does not exist in project 'SocketTestSap.Droid'
Package 'Baseclass.Contrib.Nuget.Output 2.1.0' does not exist in folder 'C:\Users\me\documents\visual studio 2015\Projects\SocketTestSap\packages'
Install-Package : Could not install package 'Baseclass.Contrib.Nuget.Output 2.1.0'. You are trying to install this package 
into a project that targets 'MonoAndroid,Version=v5.0', but the package does not contain any assembly references or content 
files that are compatible with that framework. For more information, contact the package author.
....
Attempting to gather dependencies information for package 'Baseclass.Contrib.Nuget.Output.2.1.0' with respect to project 'SocketTestSap.WinPhone', targeting 'WindowsPhone,Version=v8.0'
Attempting to resolve dependencies for package 'Baseclass.Contrib.Nuget.Output.2.1.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Baseclass.Contrib.Nuget.Output.2.1.0'
Resolved actions to install package 'Baseclass.Contrib.Nuget.Output.2.1.0'
Install failed. Rolling back...
Package 'Baseclass.Contrib.Nuget.Output 2.1.0' does not exist in project 'SocketTestSap.WinPhone'
Package 'Baseclass.Contrib.Nuget.Output 2.1.0' does not exist in folder 'C:\Users\me\documents\visual studio 2015\Projects\SocketTestSap\packages'
Install-Package : Could not install package 'Baseclass.Contrib.Nuget.Output 2.1.0'. You are trying to install this package 
into a project that targets 'WindowsPhone,Version=v8.0', but the package does not contain any assembly references or content 
files that are compatible with that framework. For more information, contact the package author.
....

Is there probably a workaround for this?

Mutex

Hi, I would suggest including the unzip path in the mutex. We are using the nuget in a bigger project and our buildserver is building simultanously in different working spaces. The problem is that the builds are influencing each other since the mutex is system wide.

Thanks, Rainer.

Is net20 support possible?

Hi Daniel,

Your Baseclass.Contrib.Nuget.Output.2.4.0 package currently supports net40 and above. Would it be possible to have it support net20 and above? Or is it that there are features that require net40?

Thanks! I like your package very much!

Robert

Creates nuspec files from consumed packages

Hallo,

we recognized that this nuget packages creates nuspec files from other consumed nuget packages in their packages folder.
Example: We consume Newtonsoft.Json package. After installing Baseclass.Contrib.Nuget and building the project, in the packages folder of Newtonsoft.Json is a file named "Newtonsoft.Json.nuspec". This file lies directly next to Newtonsoft.Json.nupkg.
Now our problem is, that the build server is searching for all nuspec-files and tries to pack the corresponding project-files. Since the packages folder now contains "Newtonsoft.Json.nuspec", the build server tries to pack "Newtonsoft.Json.csproj", which doesn't exist. Therefore our build fails.

Is it possible, that creating nuspec files from consumed projects could be avoided?

Best Regards

Using version 1.0.6 results in an `"UnzipNuspec" task was not found' error

When I use a package that depends on Baseclass.Contrib.Nuget.Output version 1.0.6, I get the following error:
The "UnzipNuspec" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory.
This goes away when I revert to using version 1.0.4 or your package.

My nuspec files looks is as follows:

<?xml version="1.0"?>
<package >
  <metadata>
    <id>MyPackageId</id>
    <version>0.2</version>
    <authors>Johan Burger</authors>
    <owners>My Employer</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>My Description</description>
    <copyright>Copyright 2014</copyright>
    <dependencies>
      <!-- Version 1.0.6 of the package below introduces errors when the CAN HAL package is unpacked. -->
      <dependency id="Baseclass.Contrib.Nuget.Output" version="1.0.4" />
    </dependencies>
    <references>
      <reference file="MyDotNetDll.dll" />
    </references>
  </metadata>
  <files>
      <file src="bin\Release\MyDotNetDll.dll" target="lib\net40\MyDotNetDll.dll"/>
      <file src="..\ThirdParty\FirstNative.dll" target="output\FirstNative.dll"/>
      <file src="..\ThirdParty\SecondNative.dll" target="output\SecondNative.dll"/>
      <!--<file src="bin\Release\install.ps1" target="tools\install.ps1" />-->
  </files>
</package>

The project uses .NET 4 Client profile.
I'm using it with Visual Studio 2010 Professional, on a 64 bit Windows 7 Professional PC with SP1.

Support packages.{project-name}.config files

According to the NuGet FAQ, packages.config may be named packages.{project-name}.config (see https://docs.nuget.org/consume/nuget-faq "I have multiple projects in the same folder, how can I use separate packages.config or project.json files for each project?").

Baseclass.Contrib.Nuget.Output does only look for a packages.config file. I don't know, if the other extensions have the same behaviour.
I use both possibilities to name the packages.config file in my projects and would be happy to see both of them supported, hence I want to use your extension to NuGet (at least the Baseclass.Contrib.Nuget.Output extension).

Cheers,
Dome

Copy output with all the package that have the same name root

I have made 2 nuget packaget
"MyPackage.nupkg" that contains only the lib folder with the dll to add to the project
"MyPackage.Output.nupkg" that depends from the first package and plus add the output folder where are some other files.

When I make a project that reference only the first package but in the global solution packages folder is downloaded even the second package even the otput files of the second package are copied to the output of the project even it the project refer only the first package.

Support for Visual Studio 2017

Is support for Visual Studio 2017 planned?
We tried to build our projects for 2017 RC and te build fails with

C:\<project>\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4175: The task factory "CodeTaskFactory" could not be loaded from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Tasks.v15.0.dll". Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Tasks.v15.0.dll' or one of its dependencies. The system cannot find the file specified.

(We use BaseClass.Contrib.Nuget indirectly through libsodium-net, which depends on BaseClass.Contrib.Nuget)

Visual Studio 2017 RC build error

Having the nuget package of this project (version 2.1.0) installed to a project in Visual Studio 2017 RC prevents build from completing with the following error:

Error The task factory "CodeTaskFactory" could not be loaded from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Build.Tasks.v15.0.dll". Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Build.Tasks.v15.0.dll' or one of its dependencies. The system cannot find the file specified.

Any ideas?

error MSB4018: The "PackageRetrievalTask" task failed unexpectedly

When i am using msbuild command line to build my csproj. I encountered error message as below :
Baseclass.Contrib.Nuget.Output.2.4.3\build\Baseclass.Contrib.Nuget.Output.targets(65,5): error MSB4018: The "PackageRetrievalTask" task failed unexpectedly.

Could anyone help on this please?

Not compile if there is no packages other Nuget package with output folder

I have made a new project, add the Nuget Package Baseclass.Contrib.Nuget.Output.1.0.9 and no other one, the project not compile with this error:

Error 1 Invalid static method invocation syntax: "[System.IO.Path]::GetFullPath()". Method 'System.IO.Path.GetFullPath' not found. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(a, b)). NUget

Use UseHardlinksIfPossible and SkipUnchangedFiles in Copy task

I'm using your package to include a large set of files (> 500Mb).
Currently all files are copied on each build. Is it possible to add the UseHardLinksIfPossible and SkipUnchangedFiles parameters to the Copy task in the msbuild targets? This will prevent unnecessary copy actions.

Unable to build the project after adding this nuget package

Hi!

I am getting the following error saying that the key has already been added. Please find the logs below -

Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB4018	The "PackageRetrievalTask" task failed unexpectedly.
System.ArgumentException: Item has already been added. Key in dictionary: 'packageIcon.png'  Key being added: 'packageIcon.png'
   at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
   at System.Collections.Hashtable.Add(Object key, Object value)
   at System.Collections.Specialized.OrderedDictionary.Add(Object key, Object value)
   at MS.Internal.IO.Zip.ZipIOCentralDirectoryBlock.ParseRecord(BinaryReader reader, Int64 centralDirectoryOffset, Int32 centralDirectoryCount, Int64 expectedCentralDirectorySize)
   at MS.Internal.IO.Zip.ZipIOCentralDirectoryBlock.SeekableLoad(ZipIOBlockManager blockManager)
   at MS.Internal.IO.Zip.ZipIOBlockManager.get_CentralDirectoryBlock()
   at MS.Internal.IO.Zip.ZipArchive.GetFiles()
   at System.IO.Packaging.ZipPackage.ContentTypeHelper..ctor(ZipArchive zipArchive, IgnoredItemHelper ignoredItemHelper)
   at System.IO.Packaging.ZipPackage..ctor(String path, FileMode mode, FileAccess access, FileShare share, Boolean streaming)
   at System.IO.Packaging.Package.Open(String path, FileMode packageMode, FileAccess packageAccess, FileShare packageShare, Boolean streaming)
   at Baseclass.Contrib.Nuget.Output.Build.NugetPackageManager.TryGetUsedPackagesDependendingOnNugetOutput(ITaskItem[]& packages)
   at Baseclass.Contrib.Nuget.Output.Build.PackageRetrievalTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()	CP	C:\Users\User\.nuget\packages\baseclass.contrib.nuget.output\2.4.3\build\Baseclass.Contrib.Nuget.Output.targets	65	

Any idea what might be the issue?

Thanks!

Question: Is this also usable for packages I don't make myself?

I was wondering if this is also usable for packages that I won't make myself? For example I have implemented my solution to work with IDbConnection and I want to supply my solution with different DLL's from packages like Npgsql, ODP.NET etc.

Or am I misunderstanding the purpose of this?

'PackageFilter task failed unexpectedly' using VS2010

Using VS2010 I get the following error when using the package:

...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4018: The "PackageFilter" task failed unexpectedly.
...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4018: System.ArgumentException: Object of type 'Microsoft.Build.Framework.ITaskItem[]' cannot be converted to type 'Microsoft.Build.Framework.ITaskItem[]'.
...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4018: at System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)
...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4018: at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4018: at System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)
...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4018: at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4018: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4018: at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4018: at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4018: at Microsoft.Build.Execution.TaskFactoryWrapper.SetPropertyValue(ITask task, TaskPropertyInfo property, Object value)
...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.InternalSetTaskParameter(TaskPropertyInfo parameter, Object parameterValue)
...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,20): error MSB4026: The "PackageConfigs=@(PackageFiles)" parameter for the "PackageFilter" task is invalid.
...\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets(73,5): error MSB4063: The "PackageFilter" task could not be initialized with its input parameters.

Trying various previous releases, I need to go down to 1.0.7 before the problem disappears.

Name resolution for "_ldap._tcp.dc._msdcs.fios-router.home" & "wpad" BLOCKED by dnscrypt-proxy! How to fix?

I love Simple DNSCrypt. However, on every reboot of my Win 10 Pro 64-bit PC, I get this Warning in Event Viewer:
"Name resolution for the name _ldap._tcp.dc._msdcs.fios-router.home. timed out after none of the configured DNS servers responded."
It mentions fios-router.home, which is my Quantum G1100 router for FIOS 1Gbps.
So, is it possible that dnscrypt-proxy and the DNS server at 127.0.0.1 are missing a needed link or DNS entry to reach _ldap._tcp.dc._msdcs.fios-router.home inside my Quantum G1100 router?
(By the way, when I want to access that router, I go to 192.168.1.1, hit "Proceed", enter the password, and I'm in. And, recently, Verizon updated its firmware to require the acceptance of a self-signed certificate to access the router that way, which I accepted. Yes, I can access the router that way - I just tried again.)
What should I do about the Warning on every reboot? Thanks.

Copy fails until modified AfterTargets in Baseclass.Contrib.Nuget.Output.targets

The copy wasn't happening for me in VS2017 15.6.4 compiling C++ when I noticed Baseclass.Contrib.Nuget.Output.targets set the copy to occur AfterTargets="Compile". My build has targets InitializeBuildStatus, VcpkgTripletSelection, ClCompile, Link, and FinalizeBuildStatus so AfterTargets="Compile" never happened.

Changing AfterTargets="Compile" to AfterTargets="Link" worked in my case but I suppose a more complex solution will be needed for a targets file that works for different builds.

Builds and Nuget Updates fails sporadically

Hi,
we experienced that builds can fail with the error message

The "PackageRetrievalTask" task failed unexpectedly.

The process cannot access the file 'D:\data\users\user\Documents\Project\Component\Solution\packages\packageX\packageX.nuspec' because it is being used by another process.

It is not always happening but happens sporadically.

Another thing we experience which may be linked to the same issue is, that updating Nuget packages which depend on baseclass/Contrib.Nuget fails and visual studio suggest a restart.

The error message is:

The process cannot access the file 'D:\data\users\user\Documents\Project\Component\Solution\packages\packageX\packageX.8.0.0-ci00252.nupkg' because it is being used by another process.

Can you provide a solution for this issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.