Tag: ravendb

如何在Linux Docker容器中从networking共享中恢复nuget包

我打算在Docker容器中构build.NET Core解决scheme,但无法使dotnet restore命令正常工作。 我需要使用本地networking共享(只是一个简单的文件系统存储库)以及官方nuget回购。 我的nugetconfiguration如下所示: <?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="Nuget Feed" value="https://api.nuget.org/v3/index.json" /> <add key="custom feed" value="//uvd-fs1.uvd.local/Install/UVPackages" /> </packageSources> </configuration> 我启动容器使用命令docker run -it –rm -v "$pwd\:/sln" microsoft/aspnetcore-build:latest 然后cd sln和dotnet restore ./UVAudit.sln 。 这会产生以下错误: /usr/share/dotnet/sdk/1.0.1/NuGet.targets(97,5): error : Failed to retrieve information about 'RavenDB.Client' from remote source '/uvd-fs1.uvd.local/Install/UVPackages'. [/sln/UVAudit.sln] 我希望RavenDB软件包可以从官方的feed中恢复,但是如果我从nuget.config文件中删除了自定义的软件包源,那么只有非官方的软件包不能被parsing。 这使我认为错误信息有点误导。 我也会认为/uvd-fs1.uvd.local/Install/UVPackages部分实际上应该是//uvd-fs1.uvd.local/Install/UVPackages ,但是添加更多的斜线并不起作用。 任何想法,如果我做错了什么,或者这看起来像一个错误? 我不是Linux专家,所以我可能会错过一些基本的概念。 […]

RavenDb – 状态代码:NotFound

我使用Docker hub上提供的Powershell脚本来安装RavenDb和Docker: https ://hub.docker.com/r/ravendb/ravendb/(run-ubuntu1604.ps1)。 我可以使用localhost:8080login到RavenDbpipe理控制台,而且我可以创build一个名为“mydbname”的数据库。 但是,当我尝试编写一个.NET程序来与Raven交互时,我得到一个错误。 这里是代码: using (var store = new DocumentStore { Url = "http://localhost:8080", DefaultDatabase = "mydbname" }) { store.Initialize(); using (var session = store.OpenSession()) { var doc = MyClass.New(); session.Store(doc); session.SaveChanges(); Console.WriteLine("Inserted this document:"); Console.WriteLine(doc.Name + "\t" + doc.Age + "\t" + doc.RandomString); Console.WriteLine(); } } MyClass.New()只是返回一个types为MyClass的新POCO。 我运行这个时得到的错误: Unhandled Exception: Raven.Abstractions.Connection.ErrorResponseException: […]