VSCode。(VSCode. OmniSharp do not load right solution)
在我的工作项目中,导航无效。
我需要在VSCode中打开的文件夹是:
c:\repoSVN\prj_ai_prjs_rc\
。 我想加载的解决方案是:c:\repoSVN\prj_ai_prjs_rc\implementation\KRN\KRN.sln
当我看到OmniSharp日志时,我发现它加载了错误的解决方案:
Starting OmniSharp server at 2017-11-27 09:57:44 Target: c:\repoSVN\prj_ai_prjs_rc\.build\02_Aure.Product.sln
没有错误。 只需加载解决方案及其项目。
KRN.sln
没有任何内容In my work project, navigation is not working.
Folder that I need to open in VSCode is:
c:\repoSVN\prj_ai_prjs_rc\
. Solution that I want to load is:c:\repoSVN\prj_ai_prjs_rc\implementation\KRN\KRN.sln
When I see OmniSharp logs, I see that it loads wrong solution:
Starting OmniSharp server at 2017-11-27 09:57:44 Target: c:\repoSVN\prj_ai_prjs_rc\.build\02_Aure.Product.sln
No errors. Just loading solution and its projects. And there is nothing about
KRN.sln
原文:https://stackoverflow.com/questions/47505491
最满意答案
将块存储为实例变量,可以从进行RKObjectManager调用的位置引用该变量。
void (^callback)(RKObjectRequestOperation * operation, RKMappingResult * mappingResult);
这定义了一个名为“callback”的块,它返回void并获取两个参数。 使用以下代码初始化它:
callback = ^(RKObjectRequestOperation * operation, RKMappingResult * mappingResult) { // Your completion code here };
现在,您可以使用变量名称“callback”作为成功块参数,在发布请求中重用此块代码。
Store the block as an instance variable that can be referenced from where you are making your RKObjectManager calls.
void (^callback)(RKObjectRequestOperation * operation, RKMappingResult * mappingResult);
This defines a block named "callback" that returns void and takes two parameters. Initialize this with the following code:
callback = ^(RKObjectRequestOperation * operation, RKMappingResult * mappingResult) { // Your completion code here };
Now you can reuse this block code in your post requests by using the variable name "callback" as the success block parameter.
相关问答
更多-
MongoDB C#驱动中查询两个值的区间怎么写[2023-02-08]
success -
我不得不将一个外键RKConnectionDescription添加到binder实体映射,这需要我为名为caseId的Binder实体创建一个新属性。 有没有办法在不创建新属性的情况下执行此操作? 此外,什么是RKConnectionDescription的关键路径/何时需要它? I had to add a foreign key RKConnectionDescription to the binder entity mapping, which required me to create a new ...
-
您误解了多个上下文的保存语义。 当您调用saveWithBlock:您需要将所有托管对象传输到在您操作之前为您创建的新本地上下文,否则上下文没有更改,也不会保存。 要传输,您需要获取托管对象ID并找到existingObjectWithID:error: . 在这种情况下,对于2个对象删除,最好直接从主上下文(它们属于它们)中删除对象,并将其保存到持久性存储中。 You misunderstand the saving semantics for your multiple contexts. When y ...
-
最好的RestKit设置(Best RestKit setup)[2023-06-01]
我建议使用以下结构(以Instagram为例): 1)首先根据您使用的“资源”拆分所有请求,例如用户/评论/喜欢等 2)为每个“Resource”创建一个单独的类,RKObjectManager的子类,例如UsersManager,CommentsManager,LikesManager(全部继承自RKObjectManager ) 3)在每个管理器上定义额外的方法,您将从View Controller中使用这些方法。 例如,为了为用户加载“喜欢”资源,你可以在LikesManager(或UserManag ... -
使用RestKit进行对象映射(Object mapping with RestKit)[2022-06-11]
使用单个类的原始映射,您可以执行以下操作: RKObjectMapping* mapping = [RKObjectMapping mappingForClass:[User class]]; [mapping addAttributeMappingsFromDictionary:@{ @"user.FirstName": @"firstName", @"user.LastName": @"lastName", @"sessionToken" : @"sessionToken", }]; Using th ... -
你可以使用这样的方法: NSMutableURLRequest *request = // create a request… RKObjectRequestOperation *operation = [manager objectRequestOperationWithRequest:request success:nil failure:nil]; [operation start]; [operation waitUntilFinished]; BOOL myResult = NO; if (! ...
-
RestKit单个成功块(RestKit single success block)[2023-03-06]
将块存储为实例变量,可以从进行RKObjectManager调用的位置引用该变量。 void (^callback)(RKObjectRequestOperation * operation, RKMappingResult * mappingResult); 这定义了一个名为“callback”的块,它返回void并获取两个参数。 使用以下代码初始化它: callback = ^(RKObjectRequestOperation * operation, RKMappingResult * mappin ... -
尝试这个: [self.imageView setImageWithURL:[NSURL URLWithString:imageURL] placeholderImage:[UIImage imageNamed:@"YourPlaceholder.png"] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType) { ...
-
工作代码......只需使用async:false jQuery.validator.addMethod("uniquerheading", function(value, element) { $action_name = 'checkunquieannoucementheading'; var response = false; var url = '
以编程方式从Restkit成功的上下文中导航视图控制器(Programmatically navigate view controllers from the context of Restkit success)[2022-10-07]
如果你的viewController在UINavigationController那么你需要调用: [viewController.navigationController pushViewController:snap animated:YES]; 另外,你不能将它显示为push,你必须通过调用以下方式以模态方式显示它 [viewController presentModalViewController:snap animated:YES]; If you your viewController ...相关文章
更多- form load 的问题
- 每日英语:When Simplicity Is The Solution
- Vivek's blog - Roll your own autocomplete solution using Tries.
- Unable to load configuration.
- EXT4 Store Load For Gird Exception
- 解决Eclipse无法打开“Failed to load the JNI shared library”
- Hadoop Could not load native gpl library异常解决
- hibernate 多表 join 查询发现还是会重新load one-to-many 子表
- tomcat6启动异常 Could not load com.mysql.jdbc.SQLError的解决方法
- HBase: The Definitive Guide
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)