|
How do GhostDoc and Sandcastle/SHFB compare?
|
# ¿ Jun 20, 2014 20:07 |
|
|
# ¿ May 2, 2024 11:14 |
|
crashdome posted:I've never used Git because gently caress command line. Although, I do find TFS a bit confusing at times. I thought Git would be more confusing. Is that not true? Can I seamlessly browse my projects in VS with Git? Can I type a comment in a textbox and push pending changes to Git? I'm a lone developer with a few read-only accounts to my projects. If you want to anything fancy (e.g. any history rewrites), you'll have to go third-party, but basic commit/push/fetch/branch stuff is done easily within VS.
|
# ¿ Jun 20, 2014 20:43 |
|
chmods please posted:Theyre different things entirely Sandcastle compiles the inline documentation to a set of web pages or whatever. As far as I can tell, GhostDoc is good for automatically writing a comment stating that GetButts() gets the butts. Did they add compilation or something? According to the website the Pro version will do it. After reading a little bit more I think I just don't understand what's useful about being able to automatically infer that GetButts() gets butts, but to each their own I guess And while we're on the subject, maybe SHFB should be in the OP?
|
# ¿ Jun 21, 2014 00:31 |
|
Does anyone have any idea why VS 2013 might start hanging whenever I try to open or add an F# library project? Right after I do it I get that "Visual Studio is doing something or waiting for user input" pop up whenever I click anywhere, and attempting to end the process gives me the "Visual Studio is waiting for modal input" dialog box, except it doesn't look like it is. This is kind of a problem... e: Update 2 fixed it, whatever "it" was. raminasi fucked around with this message at 20:01 on Jun 29, 2014 |
# ¿ Jun 29, 2014 18:51 |
|
Can I thank you for making the great OP and suggest adding Sandcastle/SHFB to it
|
# ¿ Jul 6, 2014 07:35 |
|
Chill Callahan posted:Can't you just mouse over 'var' to find out the type in VS? C# is still statically typed so I'm not sure why it's a big deal. It works less often than it should, and now you need to bring your IDE along when you go codebase history spelunking.
|
# ¿ Jul 9, 2014 21:55 |
|
I've got a solution that's started opening with some projects unloaded. I can manually load them fine, but I have to do it every time the solution is opened fresh. I deleted the .suo file for the solution and the problem didn't go away. This is on VS 2013. Anyone have any ideas?
|
# ¿ Jul 10, 2014 21:04 |
|
Huragok posted:I'm not 100% sure but aren't solution project files selected for loading/unloading using the .vsproj? If that is the case and you use source control you should break out the rubber hose () because someone must be committing the .vsproj with projects unloaded. I can't find any diff in either the relevant vsproj files or the sln that would explain this.
|
# ¿ Jul 11, 2014 17:33 |
|
If I'm inheriting from an abstract class, is there really no way to make one of the overridden properties more accessible without essentially duplicating it?
|
# ¿ Jul 16, 2014 19:52 |
|
Bognar posted:Use the new keyword and make a call to base.SomeMethod? It's still essentially duplication, but you get to keep the same name. I wasn't clear. I have: C# code:
C# code:
|
# ¿ Jul 16, 2014 20:20 |
|
FileSystemWatcher.OnChanged is fired when a file change begins, not when it ends. Is there a way to get the changed file after it's done being modified other than just repeatedly attempting to open it and catching IOExceptions?
|
# ¿ Jul 22, 2014 19:37 |
|
Your question is about configuring your deployment, not your build settings, so unless I'm mistaken somewhere, this:Mr Shiny Pants posted:You should create the folders within VS solution and tell it to copy the solution files "always". The copy option is within the file properties of the file you want it to copy. actually solves a different problem. How are you deploying?
|
# ¿ Jul 23, 2014 21:14 |
|
Sedro posted:You have to use ClassB (with initialization in the ctor) or ClassC. quote:The initializer directly initializes the underlying field – it doesn’t go through the setter. For that reason, it is now meaningful to allow getter-only auto-properties: Yessss
|
# ¿ Aug 1, 2014 18:07 |
|
LOOK I AM A TURTLE posted:It still doesn't cover all the bases, but for what it's worth they're also adding some new syntax for "primary constructors", so you'll be able to do stuff like this: This is what I should have quoted.
|
# ¿ Aug 1, 2014 22:33 |
|
I've developed a custom WPF control that "intelligently" determines the best way to display information that's been bound to it. I want this control to expose a facility to export the data that's currently being displayed in a way that corresponds to the current way that information is being displayed. (i.e. the export format matches the display format). However, the control shouldn't be the component that actually initiates the export - that should happen elsewhere. What's the best way to do this? I was thinking of having the control offer some kind of Action<string> (or more appropriately, a custom delegate) property that a view model could bind to using OneWayToSource binding, but I'm not sure if that's the kind of thing I should be doing, or if it is, if there's a way to enforce the one-way-reverse behavior when setting up the relevant DependencyProperty. e: It looks like the "right" way to do this, using a ReadOnlyDependencyProperty, isn't going to work. raminasi fucked around with this message at 18:56 on Aug 11, 2014 |
# ¿ Aug 11, 2014 18:43 |
|
I want to start a ridiculous, pie-in-sky side project to compile C# into this tiny other programming language that already exists (but is really, really terrible). Is Roslyn the place to start here?
|
# ¿ Aug 17, 2014 18:08 |
|
I basically need a C#-parsing frontend.
|
# ¿ Aug 17, 2014 21:31 |
|
Rooster Brooster posted:Rosyln should be able to parse you out a syntax tree from C# text, and then you could build a translator that would take that tree and spit out the other language's code. Does that sound like what you're looking for? It's a start. I'm realizing I haven't quite thought all this through enough. raminasi fucked around with this message at 19:24 on Aug 18, 2014 |
# ¿ Aug 18, 2014 18:12 |
|
I'm using the built-in VS2013 profiler thing, and I'm seeing a bunch of time spent on a simple field read. As it turns out, the code to populate this field might be taking some substantial time to execute. I'm profiling a release build. Am I seeing the JIT or whatever defer the computation and assignment until the field is actually accessed?
raminasi fucked around with this message at 20:31 on Aug 19, 2014 |
# ¿ Aug 19, 2014 20:29 |
|
C# 6.0 will have a way to more easily match constructor arguments with auto-properties, but there's nothing like what you want yet.
|
# ¿ Aug 19, 2014 21:42 |
|
Sedro posted:So primary constructors will save exactly 1 line of code (excluding braces)? I hope that's not the case. There's syntax to automatically plug them into auto properties, which is really nice.
|
# ¿ Aug 20, 2014 20:38 |
|
I've seen that problem when the assembly containing the viewmodel gets renamed in a post-build event. Basically, Intellisense knows what the class will look like once compiled, but the compiler can't actually find it once it is.
|
# ¿ Aug 22, 2014 04:08 |
|
The whole process is made harder than it needs to be by the fact that WPF doesn't offer a good, concrete ICommand implementation out of the box, for some idiotic reason. Most people either use third-party frameworks or just roll the bits from them they need on their own, like the RelayCommand in this article. (RelayCommand is really tiny so it's not hard.) The end product looks something like this: C# code:
|
# ¿ Aug 26, 2014 19:10 |
|
A Tartan Tory posted:Ok so, this is the viewmodel, it initiates itself whenever the button is pressed (how do I represent that in the XAML in view?) and all the inputted data is bound to the name I use in the xaml in view for that textbox it just needs to be assigned to a new variable within this method (how do I access it from the binding to do that then, it can't be within the model as given in the example?). It doesn't need to be assigned anywhere new; presumably you've got some of these guys elsewhere in your viewmodel: C# code:
|
# ¿ Aug 26, 2014 19:43 |
|
A Tartan Tory posted:Oh, oh! I get it now! So whenever the view is updated by the user, the command updates the variables that are assigned in public in the ViewModel, so it can be used by the programming logic later on and then displayed as results when finished? Not quite. The command doesn't do the updating; the data binding engine itself does that. It would still work even if there were no command anywhere. If you perform multiple assignments to Results, only the last one will "stick," the same as any other variable assignment.
|
# ¿ Aug 26, 2014 19:56 |
|
I only use the fluent notation because I don't use LINQ for database operations so I figured that if I'm writing C# it might as well actually look like C#.
|
# ¿ Aug 29, 2014 16:14 |
|
Ciaphas posted:Assuming the resulting IEnumerable or whatever is the same, the order of your fluent-syntax calls doesn't have an effect on performance, does it? Like doing the .OrderBy() before or after the .Select() or whatever? That's a very strong assumption. Can you give an example of when it holds that you're talking about?
|
# ¿ Aug 29, 2014 16:42 |
|
mortarr posted:Does anyone have any ideas on how to take a querystring like so: What have you tried, and what's not working?
|
# ¿ Sep 4, 2014 04:53 |
|
If I've got a spun-off async operation blocking on a call to TcpListener.AcceptTcpClient(), and something else calls TcpListener.Stop(), a SocketException is thrown with the message "A blocking operation was interrupted by a call to WSACancelBlockingCall". That seeems like it's exactly what I want. Can I just swallow this exception? It feels like there should be a better way to do this. edit: There had better be a better way to do this, as I am apparently unable to actually catch this exception. No matter where I put try/catch blocks, the exception slips through and brings my app down. raminasi fucked around with this message at 19:16 on Sep 6, 2014 |
# ¿ Sep 6, 2014 18:13 |
|
Bognar posted:Can you post some code? I will disclose that this is my first attempt at writing my own async code (rather than just blindly copying from someone else), so I might be thinking about this completely wrong. Here is the original, non-working code, with the relevant bits noted with comments: code:
code:
|
# ¿ Sep 8, 2014 18:15 |
|
Bognar posted:I'm very inexperienced with F#, but my read of that code is that you are calling Async.Start which is starting the server method on the threadpool. If you're not handling exceptions within that method, the exception can not be caught because it's running on a different thread as the first method in its call stack (and therefore not wrapped in a try/catch at any level). The problem is that code:
|
# ¿ Sep 8, 2014 18:58 |
|
darthbob88 posted:That might do it, but I don't understand async that well. I don't suppose I can get a demonstration, just a toy program? What specific problem do you think that will solve that three separate async writes won't?
|
# ¿ Sep 11, 2014 05:49 |
|
darthbob88 posted:It'd save creating and disposing of two StreamWriters per media collection, and it'd be marginally easier to have the StreamWriter write to another folder than to create and dispose of another StreamWriter, but that only matters to my crippling Asperger's. The async is probably unnecessary; at the moment the catalogs total only about 400K, with the largest being 180K, so I can just do it with three regular writes. Computers exist to do boring, repetitive work. Wait for the profiler to start whining before you worry about this kind of optimization.
|
# ¿ Sep 11, 2014 15:26 |
|
Why can't you just have the projects that need NuGet packages directly reference them?
|
# ¿ Sep 11, 2014 20:20 |
|
Is there a way to get more detailed information about what's causing a TypeLoadException? I know the type it can't find, but I haven't the faintest idea why it can't find the type, and I'm pulling my hair out trying to figure out what's going on.
|
# ¿ Sep 12, 2014 00:43 |
|
No Safe Word posted:It's always a binding redirect Oh, it's found the assembly. It loads all the other types in it fine. I just can't add any more, apparently.
|
# ¿ Sep 12, 2014 01:55 |
|
Sedro posted:Does the type have a .cctor or any static fields? Yep, static class with .cctor.
|
# ¿ Sep 12, 2014 04:31 |
|
Sedro posted:Obvious question, does it throw an exception? I forgot that I'd disabled the .cctor to try to solve this problem. The class at this point has a single method which is a no-op. edit: Problem solved, the wrong .dll was getting loaded. (It was an old version in a different location.) ProcMon, you've saved my bacon yet again! raminasi fucked around with this message at 06:25 on Sep 12, 2014 |
# ¿ Sep 12, 2014 06:02 |
|
mortarr posted:If you're after optional conditions in the where clause, there's always predicate builder. I don't have any need for this right now, but I have a question about their example code: C# code:
quote:The temporary variable in the loop is required to avoid the outer variable trap, where the same variable is captured for each iteration of the foreach loop. Why would the same variable be captured on each iteration?
|
# ¿ Sep 16, 2014 15:03 |
|
|
# ¿ May 2, 2024 11:14 |
|
ljw1004 posted:It's not captured on each iteration any longer. We made this change is VS2012. The temporary is no longer needed. Was the old behavior originally intended, or was it a bug? That behavior seems incredibly counterintuitive to me, especially because, if I understand right, there's no way to explicitly request it anywhere in the language. (Also, how did I not know that?)
|
# ¿ Sep 16, 2014 16:47 |