English 中文(简体)
可否将理论用作在VS2010年建造建筑工程的理由?
原标题:Can t use a Dictionary as an argument to a BuildProcessTemplate in VS2010?
  • 时间:2011-11-21 17:01:27
  •  标签:
  • c#

I am trying to customize my build process template in VS2010. I have added an argument called "temp", of type "Dictionary < String, String >". I want the default value to be: "new Dictionary < String, String > ()"

When I enter the default value, VS complains: "Compiler error encountered process expression [...] . expected"

我在违约值方面尝试了几种不同的差异(末期的血清;末期的半分辨率;强硬体;等等),但仓促工作。 任何想法?

最新资料:

我将违约价值改为:

new Dictionary(Of String, String)

这似乎行之有效。 然而,我仍然无法开始这样说:

new Dictionary(Of String, String) {   {"cat", "dog"} } 

任何想法?

问题回答

Aha! 引出“来自”辛加工厂:

New Dictionary(Of String, String) From {{"cat", "dog"}}




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签