|
Since we're talking CI I'll say I've had a pretty good experience using the free offering version of AppVeyor and since I use GitHub as my auth account the integration is pretty easy and great.
|
# ¿ Jun 30, 2014 18:45 |
|
|
# ¿ May 2, 2024 18:33 |
|
wwb posted:Ran headlong into a windows thing that someone here might have ran into -- it seems that Visual Studio 2013 installed HyperV with Update 2 because of windows phone. Unfortunately hyperv breaks networking on VirtualBox and I need that function a lot more than I need to be able to emulate windows phone. Anyhow, I didn't figure this out until after I tried to upgrade virtualbox and ended up with a bunch of screweyness in the network stack somewhereas I can't seem to uninstall or reinstall it. Moreover, I can't remove hyperv at all -- I can uncheck the box, it runs the uninstall, reboots and then hangs at about 36% before rolling back my changes. I've looked in a few of the obvious places but I haven't found any rhyme or reason to this, is there some other tree I should bark up? Or has anyone run into this at all -- everything from google seems to be about people having problems installing hyperv not removing it. I've run into this before as well but I was able to resolve it by turning off Hyper-V in the Add/Remove Windows Features section of Programs. You're saying that when you do that it goes through the motions of uninstalling it but then hangs and rolls back?
|
# ¿ Jul 18, 2014 18:27 |
|
Ithaqua posted:Does anyone have any good resources for how to build a modern SPA that leverages MVC5/WebAPI and SignalR and whatever JS frameworks are hot right now? I haven't done any webdev in the past few years, and I really want to put something modern together to keep my skills sharp. Mads Kristensen did a presentation along these lines at this years TechEd. I haven't watched this one in particular but it seems to match your general description. Link
|
# ¿ Jul 25, 2014 18:04 |
|
This Post Sucks posted:Hey everyone, I hope this is the right place for this. I've got an issue that I'm banging my head against. We've got a big project that's supposed to deploy this Tuesday and over the last two weeks, I've been getting the following message on our QA box. The biggest thing is that it seems like random sections will break. I can do a redeploy and the error may fix in a previously broken section, yet break in another one. Furthermore, I did a deploy on Thursday; Friday everything worked, then came in this morning and a section that was working on Friday, broke. Are you referencing System.Web.Mvc from any projects that are NOT your actual MVC site? If so, that could be your culprit. Otherwise, given the Fusion log it could be a matter of needing to setup Assembly Bindings in the Web.configs for Mvc and/or Razor. My money is on a project other than an Mvc site containing a reference to System.Web.Mvc though.* * Because I very stupidly advised a coworker to do this as a shortcut and ended up fighting a nearly identical error for a day before realizing the blunder.
|
# ¿ Aug 6, 2014 19:46 |
|
Mvc Question My action method takes an int but if a jerk types in a string they get send to a runtime error page. I'd much rather send them to an error page of my design. What's the best way to handle parameter validation of this fashion for action methods?
|
# ¿ Aug 6, 2014 20:31 |
|
Bognar posted:Use int? and check for nulls. Perfect. Thanks Bognar!
|
# ¿ Aug 6, 2014 20:55 |
|
epalm posted:My ASP.NET/razor app lets users save and display messages. When a user saves a message, it contains newlines (the input is a multi-line textarea). When I want to display the message, I want to replace "\n" with "<br/>" so the message shows newlines (breaks) in html. But I don't want the whole message to be raw html, because I don't want users to save messages with iframes/divs/spans/etc. Is storing it as Markdown an option?
|
# ¿ Mar 13, 2015 16:14 |
|
Bognar posted:What do you guys think? Would anyone else use this? Agreeing with everyone else. Hot. What's nice about it is it solves one of those "tiny cuts" that we all just deal with. It's the kind of quality-of-life improvement it would be nice to see more of in the core framework.
|
# ¿ Mar 16, 2015 19:09 |
|
wwb posted:I'm not trying to rain on your parade -- this is awesome stuff -- but IIRC the MvcContrib and their FluentHtml bits had this stuff integrated back in the MVC1 days. Now, I'm not sure if that library kept up with MVC because most of what it did got subsumed into the framework. Except for this sort of strongly typed stuff. If I remember right, MvcContrib supported something like this through use of T4MVC which was great in concept but incredibly clunky when you tried to use it in your workflow.
|
# ¿ Mar 16, 2015 19:52 |
|
Brady posted:Say I wanted to get a string of all characters at the end of a path starting with "\" and going until the end. I'm looking at the string functions and can't find any easy way of doing this. Could anyone offer a hint? You don't really say what this is for, but since other's were going with directory/file examples, maybe this is what you're looking for? code:
|
# ¿ Mar 26, 2015 19:27 |
|
I've come across a weird issue with using XDocument to read, update and save a simple XML file. The source file contains a tag with an attribute that has a value like "Randy's Hamburgers" but when loaded/saved using XDocument.Load/Save it's being rewritten as "Randy's Hamburgers" which is causing another system downstream to poo poo itself. What can I do to preserve the files exisiting encoding? Edit: I think I may have found my answer. So this would involve me doing some rewrites, which I'm not against but would like to avoid if possible. Thoughts? Dr. Poz fucked around with this message at 20:17 on May 1, 2015 |
# ¿ May 1, 2015 20:07 |
|
Inverness posted:You can specify the encoding you want in the TextWriter. Interesting, but this doesn't seem to be getting me to the result I'm after as it still leaves the apostrophe in a tags value. For clarity, here is the XML as it exists when I read it in using XDocument.Load: code:
code:
|
# ¿ May 1, 2015 20:38 |
|
Aw shoot, you're right. Derp! I went over the problem with a co-worker a bit earlier and they just got back to me with this solution which seems perfect for the situation.code:
|
# ¿ May 1, 2015 20:44 |
|
It's Friday. Let's have a fight: I've seen some support here and other places in favor of using Query objects to encapsulate data access (EF, NHibernate, Raven, etc) and I tried pulling up a few examples and working out a rough example for a particular itch at work I've wanted scratched. I showed it to a coworker and his concern was that he was seeing the dreaded Repository pattern being called by another name. I can see the argument for it, I suppose. The thing I'm working on really isn't of any consequence, so this may not be the best project to use in the search of a specific answer since the nature of the project can dictate the approach to take but I'm interested in the experiences by those here. For this project, my only real needs are querying the data What separates the two in your minds? Is this a difference without a distinction? Does the name you call it by not matter? Are they both Anti-Patterns? Here are some links I looked over while researching. Query Objects: a better approach than your BLL/repository https://lostechies.com/jimmybogard/2012/10/08/favor-query-objects-over-repositories/ Well designed query commands and/or specifications Dr. Poz fucked around with this message at 15:26 on May 29, 2015 |
# ¿ May 29, 2015 15:11 |
|
Thanks for the input that clears up our conceptual issues. Can someone point me to some better links/examples than the ones I posted?
|
# ¿ May 29, 2015 20:03 |
|
chippy posted:Anyone know why a form created with Ajax.BeginForm() might be POSTing twice to the controller when submit is clicked? I've been trying to debug this for ages and it's starting to make me really angry. Have you cleared your cache? I mean really got in there and cleared your cache?
|
# ¿ Dec 18, 2015 15:20 |
|
Ran into something weird at work and wanted to see if the forums collective wisdom can help: Note: This is on Windows 7 x64 and VS2012 Update 5 I'm writing some unit tests for a WebApi controller (which is in an Mvc Project), and I discovered that the base class is making a call directly to HttpContext.Current. Ok, not problem, we are using Autofac and I have some experience with Ninject binding HttpContextBase to return HttpContext.Current so I take a peek to see if there is a "preferred" way to do this. Turns out there is! Autofac.Mvc5. I open up my package manager and paste the install command and get this output: code:
I tried going to NuGet settings and clearing the cache but that didn't seem to buy me anything. This is pretty strange. Anyone see anything like this before? We are making the switch to VS2015 next week but I'm not fond of just waiting for that if I can fix this in the mean time. Anyone see something like this before? As I mentioned before the tests are for a WebApi controller that is using a base class that seems to be used for all controllers. Autofac.WebApi2 is installed to the project and I can use it but it doesn't seem to have the Autofac module (AutofacWebTypesModule) that I need to register.
|
# ¿ Jan 8, 2016 21:35 |
|
Finster Dexter posted:I've never seen that before. The packages.config for the project I want to add it to does not contain a reference to it. When I checked the Packages folder for the solution, however it DID contain Autofac.Mvc5.3.3.4 and when I saw this I checked the repositories.config and went through each of the referenced packages.config but none of them contained a reference to Autofac.Mvc so I deleted the folder there and was able to install the package to the project. Not sure how it ended up there because I double checked and it's not coming from source control. Thanks for pointing out to check the packages folder!
|
# ¿ Jan 11, 2016 14:13 |
|
We upgraded to VS2015 today! Happy Day! Question: Looking over the Git integration features, it seems like Visual Studio automatically stages all changes. Is this the case? Is there any way to disable this behavior?
|
# ¿ Jan 13, 2016 21:43 |
|
GrumpyDoctor posted:Am I correct in assuming that this is a question about how to make changes "excluded" by default, and not one prompted by not noticing that manual exclusion is possible? That is correct. I would rather not have to manually exclude things. I would prefer to manually stage files like when using git from the command line.
|
# ¿ Jan 13, 2016 21:48 |
|
So if I'm understanding correctly, the files are not actually staged (i.e. I hit the command line, type "git status" and my modifications aren't staged) but them being "Included" means that if I commit from withing VS that it will stage/commit all "Included" files in a one step process. Is that right?
|
# ¿ Jan 13, 2016 22:07 |
|
EssOEss posted:If you are just looking for something to go from a JSON object form to some other object model, I have heard AutoMapper to be a popular mechanism for that sort of thing. Though for my own projects, I do the data mapping manually since it has proven more robust in face of changes. Please, please, please do not use AutoMapper to go from form post -> domain model. It was not meant to be used this way and down this path lies only pain. The author of the AutoMapper project routinely answers questions about how to best go about this by discouraging folks from even attempting it. Dr. Poz fucked around with this message at 16:04 on Mar 23, 2016 |
# ¿ Mar 23, 2016 15:59 |
|
Like...a menu based game?? Or something at the complexity level of BabySmash? Because otherwise, uh...there are a lot better ways to go about it.
|
# ¿ Apr 1, 2016 20:54 |
|
ModeSix posted:I'm using ASP.NET Core and EntityFramework Core. Without more context, it looks like your .Select is going to return an IQueryable result which could potentially contain multiple objects. Then you are trying to add it as a single object to your list. You can either use SingleOrDefault or FirstOrDefault to make it to a single object. If you WANT the possibility of a collection being returned by your .Select then you can pass the results to .AddRange on your list instead of .Add.
|
# ¿ Mar 19, 2017 00:34 |
|
|
# ¿ May 2, 2024 18:33 |
|
Created the basic dockerized ASPNET Core template project and figured out how to manually specify the ports I wanted the app on. Then I added Container Orchestrator Support and figured out how to manually specify the ports I wanted to use. Figuring out how to override these values via documentation wasn't difficult but I was a little surprised the initial port definition seems to be configured only via magic. I initially expected to be able to search my way to changing the value, at first by searching for the port number itself, failing that the launchSettings.json or even some value defined in the .csproj settings. While the launchSettings.json (and later docker-compose.override.yml) were where I would eventually override the values successfully did I miss some bit of initial configuration along the way or is this just a dash of "magic" for new projects?
|
# ¿ Aug 14, 2022 17:28 |