tag:help.appveyor.com,2012-11-13:/discussions/problems/7332-source-only-nuget-package-is-not-being-foundAppVeyor: Discussion 2018-08-25T02:20:06Ztag:help.appveyor.com,2012-11-13:Comment/431959822017-08-14T20:35:36Z2017-08-14T20:35:36ZSource Only Nuget Package is not being found<div><p>Correct me if I wrong, those <a href="https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/blob/master/DLaB.CrmSvcUtilExtensions/DLaB.CrmSvcUtilExtensions.csproj#L136-L150">CrmSvcUtilExtensions.cspro references</a> assume that <a href="https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/tree/master/DLaB.CrmSvcUtilExtensions">DLaB.CrmSvcUtilExtensions</a> folder contains <code>App_Packages</code> sub-folder with all that content, right? I believe it exists on your local machine, but I cannot understand how it supposed to appear on build VM, if it does not exist in repo...</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/431959822017-08-15T03:00:01Z2017-08-15T03:00:01ZSource Only Nuget Package is not being found<div><p>DLaB.Common.Sources.1.0.4.11 is a source only NuGet Package (<a href="https://nikcodes.com/2013/10/23/packaging-source-code-with-nuget/">https://nikcodes.com/2013/10/23/packaging-source-code-with-nuget/</a>). When I install it locally, it creates the files in the App_Packages sub-folder. I could deletethose files, and re-install the nuget package, and it would bring in the source files.</p>
<p>I live in a world where I have to deploy everything to a sandbox environment where I can't reference external dlls, so rather than IL-Merging everything, source only nuget Packages are really nice.</p>
<p>Thanks!</p>
<p>Daryl LaBar</p>
<hr></div>d3labartag:help.appveyor.com,2012-11-13:Comment/431959822017-08-16T03:37:13Z2017-08-16T03:37:13ZSource Only Nuget Package is not being found<div><p>Sorry my ignorance. I see now. But if you <a href="https://ci.appveyor.com/project/daryllabar/dlab-xrm-xrmtoolboxtools/build/1.0.132#L102">look at logs</a> nuget restores those sources to default <code>packages</code> folder: <code>Adding package 'DLaB.Common.Sources.1.0.4.11' to folder 'C:\projects\dlab-xrm-xrmtoolboxtools\packages'</code>. Maybe you have custom <code>repositoryPath</code> settings in <code>packages.config</code> on your machine?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/431959822017-08-23T12:47:37Z2017-08-23T12:47:37ZSource Only Nuget Package is not being found<div><p>Um... When I run it on my local machine, it puts it in both places:</p>
<p><a href="https://www.screencast.com/t/yTbooiRiEv">https://www.screencast.com/t/yTbooiRiEv</a></p>
<p>[<a href="https://content.screencast.com/users/D_La_B/folders/Snagit/media/536d787f-8e66-4e2d-b9b3-8b1c2dc2ab2d/FirstFrame.jpg">https://content.screencast.com/users/D_La_B/folders/Snagit/media/53...</a>]<a href="https://www.screencast.com/t/yTbooiRiEv">https://www.screencast.com/t/yTbooiRiEv</a></p>
<p>SourcesOnyNugetPackageInstall<a href="https://www.screencast.com/t/yTbooiRiEv">https://www.screencast.com/t/yTbooiRiEv</a><br>
<a href="http://www.screencast.com">www.screencast.com</a><br>
Shared from Screencast.com</p>
<p>Thanks!</p>
<p>Daryl LaBar</p>
<hr></div>d3labartag:help.appveyor.com,2012-11-13:Comment/431959822017-08-26T06:24:48Z2017-08-26T06:24:48ZSource Only Nuget Package is not being found<div><p>Local machines with historical settings are always different from clean VM. I have very strong feeling that if you try to <code>git clone</code> and <code>nuget restore</code> on some another computer or VM you never sue before, you will see the same results as on AppVeyor. Can you try that?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/431959822017-09-26T20:32:06Z2017-09-26T20:32:06ZSource Only Nuget Package is not being found<div><p>So... finally figured out what the heck is/was going on.</p>
<p>A Nuget Restore, does not copy over content files, which the App_Sources is. So the source files are copied to the packages directory, but not to the actual project directory, unless you actual re-install the package.</p>
<p>Incase someone else has the same issue:</p>
<p>I ended up having to create an exe to perform the copy and potential transformation:</p>
<p><a href="https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/raw/master/References/NuGetContentInstaller.exe">https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/raw/master/R...</a></p>
<p>And then calling it from the Pre-Build of the project:</p>
<p>"$(SolutionDir)References\NuGetContentInstaller.exe" "$(SolutionDir) " "$(ProjectPath)"</p>
<p>Thanks!</p>
<p>Daryl LaBar</p>
<hr></div>d3labartag:help.appveyor.com,2012-11-13:Comment/431959822017-09-26T23:08:02Z2017-09-26T23:08:02ZSource Only Nuget Package is not being found<div><p>Thanks a lot for the update!</p></div>Ilya Finkelshteyn