« first day (2292 days earlier)      last day (2650 days later) » 

8:07 AM
morn all
 
Hell-o
Debug -> On Device -> Visual Studio crashed and is restarting I love when the day starts positive.
 
8:28 AM
at least you got auto restart
 
at least it doesn't BSOD windows.
 
Your positive attitude is remarkable.
Let's keep this energy going and befriend the world!
 
@RoelvanUden at least it doesn't erase your code whenever it crashes.
at least it doesn't kick a random puppy
 
have you unit tested that claim?
 
at least it doesn't destabilize the basic fabric of time and space
 
8:35 AM
I would torch the entire machine if it would be responsible for kicking a puppy
 
@RoelvanUden codegolf.stackexchange.com/questions/22877/… relevant (and not friday for once.)
 
Whaaaat.
 
9:17 AM
hi
 
9:28 AM
Hi I am running a asp.net project in visual studio .
But I am getting this error
ERROR: Application_Start: SSAPP_Initialize: 601 / You need to restart the application pool (or IIS) before retry.
How can I remove this error ?
Please help me .
 
for those who were interested... I found out the issue with pdf working in chrome but not ie/reader etc..
 
Help me with my issue
 
let me venture a guess: You need to restart the application pool (or IIS)?
 
@SagorAhmed A general point: "removing" an error is never the goal. Fixing the problem that an error indicates is.
 
9:44 AM
When I debug the project in visual studio , the iis automatically restarts
@satibel
Yes that is a good point
@AvnerShahar-Kashtan
 
How can I make a JOIN query with LINQ between two tables (entities) with many-to-many relationship, while there is no joining table in EF?
 
@AvnerShahar-Kashtan the issue I was having yesterday... was because of PDF document's width :/
 
9:59 AM
@MohamedAhmed join table is the way to go...
 
10:24 AM
something bothers me there:
WinCreateFile("file.txt",GENERIC_READ,0,OPEN_EXISTING)
this opens an existing file.
 
That looks very cish
waves hand this is not the room you're looking for
 
@RoelvanUden that's just a weird quirk of the language I am working with. (Diva)
 
var query = from e in Employee
join d in Dept on e.deptno equals d.deptno
select new {e.deptno, d.deptno};
@RoelvanUden your funny today
 
you're*
 
@RoelvanUden deffo wrong room for that
 
10:32 AM
@satibel What's the problem? With the fact that it uses "create" to open an existing file? This is just a problem of mixed terminology. It doesn't create a file, it creates a file handle.
I'm guessing it's a thin wrapper around the Win32 CreateFile API call.
 
^ It's the same in .NET, with File.Open, which can create files due to the mode.
 
@AvnerShahar-Kashtan seems like it, just that I spent some time searching for something like OpenFile.
 
@satibel Back when the Windows API was being developed, I think things like "easy discoverability" weren't priorities.
 
@AvnerShahar-Kashtan at least it's not undocumented.
oh, and fun stuff : CreateFile also opens I/O devices, I thought this was windows, not linux.
 
Sure, CreateFile is the single most important thing
It also opens pipes, shared memory, etc
 
10:47 AM
this gives me an Idea: I might be able to make some programs eat named pipes instead of files.
 
You probably can.
 
11:40 AM
I'm just trying out .Net Core and in my startup I have services.AddScoped<IOrderService, OrderService>(); If I need to inject something into constructor of that OrderService will it automatically be disposed of if it implements IDisposable?
 
11:53 AM
@RoelvanUden the "InitShutdown" pipe seems fun, if I understand correctly, writing 0x00 or 0x02 to it shuts the computer down.
 
12:03 PM
@satibel Really? Cool. Try it :D
 
hey guys, I want to use MultiDimensional Key in C#
help anyone ?
 
@KamrulHasan You haven't asked a question yet.
 
@KamrulHasan You can use Dictionary<Tuple<keys enlisted types>, value type>
 
@KamrulHasan "multidimensional key"?
 
12:32 PM
hello, one think that i dont understand, i use code first in a console application and everything is working as espected but when i run the application on the production server the db is not created
i am sure that i miss something
any explanation please?
 
@Kob_24 We don't know nearly enough to help you. Is there an error message? Anything logged?
Is the DB on a machine that's not available? Different user credentials?
There are so many factors we don't know here.
 
i really dont get any error on the production server when i run the application
the problem is just that the database is not created
i try to find the instance of the DB in the sql object explorer
i know its a bit hard to help me when you dont have so much information
 
We don't know what server it is. We don't even know what language your code is, or what framework it's running on. ASP.NET? WCF? WebForms? Under IIS? Self-hosted? What DB? SQL Server? Which version? Which edition? How are you creating your DB? How are you connecting to it?
Where's the connection string? Are you using entity framework to create it? Direct DDL calls?
 
ok wait.
its an C# console application
nvm
solved it
thx anyway
 
12:50 PM
You're welcome. It's all because of your finely detailed explanation of the problem that we could all pitch in and reach a reasonable conclusion that helped you with your dilemma.
 
roel is on fire today
 
how is Snake_Pascal_Case called?
 
Unreasonable.
 
@TravisJ Thanks! An OOP question: When do we inject data into a new object vs. have the new object fetch the data in its constructor? And why?
 
1:09 PM
@Alex Dependency and ownership.
 
@RoelvanUden Though_That_Is_The_Convention_I_Need_To_Work_With.
 
If my PersonViewModel needs an IPersonService instance to save and fetch data, it's dependent on the IPersonService, but it doesn't own it.
 
Okay, makes sense so far
 
However, if my PersonViewModel has an internal AddressViewModel for the person's address, this AddressViewModel is owned by the PersonViewModel, and it should create it itself.
 
Ahh, okay. So if PersonVM needs to fetch data, that should be "injected" into it when it's created by its owner
 
1:12 PM
Again, it depends. Does this data exist on its own, or is it a part of PersonVM's existence?
 
found a name for it, it is the Camel_Snake_Case.
(now imagine a camel-snake hybrid.)
or HTTP-Header-Case with underscores.
 
@AvnerShahar-Kashtan Hmm. That's a tricky question... can you give an example?
 
No, wait, that's a giraffe.
Trivia: the Greek name for a giraffe was camelopardalis, meaning "camel-leopard".
 
@AvnerShahar-Kashtan Nice.
 
Did anyone here seen anything COOL built with python ever ?
 
1:16 PM
that's a case closed for the Camel_Snake
 
"Watch out, they spit!"
 
@Mathematics import universe
 
@AvnerShahar-Kashtan so it's all backend it's famous for,,, all that stats work
 
@Mathematics It's extensively used for mathematics in academia as well.
 
1:20 PM
@Mathematics What does backend have to do with stats?
 
@KendallFrey that's a good question
 
Hey guys I have a problem with an vb quest can someone help me because it's similar to c#
0
Q: User control (vb) shared function with database (fails)

profaMost of my functions work except functions combined with database. In my User Control: Public Shared Function MedewerkerNaam(Medewerker As Integer, Meisjesnaam As Boolean) As String MedewerkerNaam = "Onbekend" If IIsNumeric(Medewerker) = True Then rs = Server.Create...

 
@Mathematics if you want some cool python stuff, there's this channel youtube.com/channel/UCWN3xxRkmTPmbKwht9FuE5A (still not friday.)
 
@profa VBQuest! An epic adventure, in search for the missing semicolon.
 
?
 
1:49 PM
MVC5: I have a TryUpdateModel call from which I wish to exclude a property. I tried to remove it from the FormCollection that came in from the POST, but no go. What's the standard way (without the whole "You should use a view model!")?
 
Quick question. Fortify not finding .NET assemblies suggests using the vsversion flag followed by a version number, using 8.0/9.0/10.0/11.0 for VS2005/2008/2010/2012 respectively. I'm using Visual Studio 2015. What version number should I use? The VS "about" menu says "version 14.0.25123.00", but I'm not sure if that's the same thing.
I'm trying -vsversion 14.0 now but it takes about thirty minutes before the scan finishes and shows me whether any warnings occurred, so I figured I'd double-check in here and maybe save me half an hour of waiting.
 
2:08 PM
Too late, scan's done. Looks like -vsversion 14.0 did it. I'll edit that into the post. If anyone happens to know what 12.0 and 13.0 correspond to, those would make good additions too
 
@Kevin 12.0 is VS2013, following the trend, and 13.0 is unused, skipping straight to 14.0 for VS2015.
And not the first time MS has skipped #13, either.
 
Ok, cool. I'll add 2013's info to the post. Thanks :-)
 
2:39 PM
Follow-up question. I have a class which overrides Equals in the following way:
public override bool Equals(object obj)
{
    Widget a = obj as Widget;
    if (a != null)
    {
        if (a.numberOfSpokes == numberOfSpokes)
        {
            return true;
        }
    }
    return false;
}
When I scan my project with HP Fortify, I get the error "Null Dereference" on line 19, if (a.numberOfSpokes == numberOfSpokes). I have two questions. First, can a null dereference error really occur here? Second, how should I rewrite my function so that Fortify no longer detects a null dereference problem (valid or not?)
(Complete MCVE available at pastebin.com/UiGVKGfc, Full error description available at pastebin.com/57DFurtX)
I'm thinking about rewriting the code to:
public override bool Equals(object obj)
{
    Widget a = obj as Widget;
    return a?.numberOfSpokes == numberOfSpokes;
}
... But this solution doesn't necessarily generalize to classes that check against attributes with nullable types to determine equality.
 
@Kevin try a?.numberOfSpokes
 
Yeah, I'm trying now... Just gotta wait for that thirty minute scan again.
 
If it takes 30 minutes to scan your code it seems to me that you should really be making a test project for figuring these things out.
 
This is the test project. My full MCVE is forty lines long.
Suppose I instead checked equality by comparing the attribute blah, which is some nullable type. I suppose I could do:
public override bool Equals(object obj)
{
    Widget a = obj as Widget;
    if (a != null)
    {
        if (a?.blah == blah)
        {
            return true;
        }
    }
    return false;
}
But that seems... Dumb.
 
If it takes 30 minutes for your tool to scan 40 lines of code I posit that you should not be using that tool.
 
2:43 PM
I feel the same way.
 
Also return a != null && a.blah == blah
Short circuiting is your friend
Or even return obj is Widget && obj.blah == blah
Or since you're using C# 6 return (obj as Widget)?.blah == blah
 
In the case of short circuiting, I have basically zero faith that the static code analyzer will successfully recognize that a null reference exception is impossible there. I don't need code that runs. I already have that. I need code that when scanned, produces a report that says "zero issues detected"
 
>return (obj as Widget)?.blah == blah
should not cause errors
 
IMHO, static code analyzers should never supersede human judgement.
 
@mikeTheLiar B...but the machine is perfect, right?
 
2:48 PM
The reasoning from management is "if our department ever gets audited, we want to be able to say 'our project has zero static analysis errors' and when the auditors check, we're not going to be able to tell them, '... but you need to suppress errors X Y and Z because we decided they didn't apply to us'"
We're assuming that the auditors are actively looking for reasons to destroy us, basically
 
I'm reminded from the following comment I wrote in one of our Python projects:
 
@Kevin ah, management. Though for once, that's not a dumb idea.
 
# pylint wants me to make these variables ALL_CAPS_IN_THE_STYLE_OF_K_AND_R_C
# but I don't wanna. So there.
# pylint: disable=invalid-name
But yeah it sounds like you need a new tool
Is there a reason the standard VS warnings are insufficient?
Also the website claims the tool is "efficient":
> Improve scan times, gets results faster, and accelerate the time it takes to get software into production by helping developers improve their programming productivity with incremental scanning.
Again, if it takes half an hour to analyze 40 LOC, I think something is wrong.
 
Well, the first scan took thirty minutes because it had to put the System library into the cache. Each scan after that has taken maybe three minutes.
 
@mikeTheLiar probably because it doesn't cost 2k and the commercial gal didn't charm the manager.
 
2:54 PM
had to put the System library in the cache what the actual shit
run away
And besides that 3 minutes for 40 lines is still insane
 
Maybe there's an "incremental scan" button I haven't found yet. I've only been using this version of the tool for a few days.
 
It seems like you're going out of your way to twist your code to suit an analysis tool that can't even figure out that after a null check a var can't be null.
 
Yes, that is a correct assessment of the situation.
 
That sounds like a useful and worthwhile use of your expertise.
 
2:57 PM
When I was in college I was almost hit by a bus and sometimes I think I really was hit by a bus, and this job is my purgatory.
 
@Kevin Let me guess, management mandates that code that doesn't pass the static analysis can't be checked in.
 
@AvnerShahar-Kashtan Nah, luckily our check-in process is primitive enough that we can push pretty much whatever we want into source control. The only real penalty is having to sit through a lecture every meeting about how important static analysis is.
And the distant foggy possibility that we get audited and then fired and then sued
 
What possible standard do you have to be compliant with that requires this?
We're contracted by the fucking FDIC and have to be SSAE-16 complaint and we don't do this sort of gymnastics.
 
My coworker tells me, "It's the standard in [our sub-industry]"
 
3:01 PM
Unless this sub-industry is nuclear power plants or something like that I think you're fine.
 
@Kevin Audited and then fired. Out of a cannon. Into the sun.
 
We track the shipment of powdered milk*. (*details changed for privacy purposes)
 
@AvnerShahar-Kashtan I'll have you hung, drawn, and quartered, and then I'll take all the little bits and I'll jump on them, and I'll keep jumping on them until I get blisters!
 
@mikeTheLiar And then I'll keep on doing it, until I think of something worse to do.
 
@AvnerShahar-Kashtan AND WHAT THE HELL'S THAT?
 
3:04 PM
Anyway. return a?.numberOfSpokes == numberOfSpokes doesn't trip the warning, so I'm going to go with that and hope it generalizes to my non-test-case code.
 
@Kevin Right on. Fight the system, brother.
 
Null-conditional operator for you! And a null-conditional operator for you! Everybody! Gets! A null-conditional operator!!!
 
And on that happy note, I'm off home.
 
If I make a static extension method for a class (specifically a Microsoft class here) what namespace do I need to put it in? The original, or my own?
 
@Hypersapien Your own. Never add new code into someone else's namespace. That's just rude.
 
3:07 PM
Ok, but it's not recognizing the new method when I try to use it.
 
using ...
 
@Hypersapien Because you don't have a using statement to your namespace.
 
I actually do
 
Also, it helps avoid ambiguation. Consider what happens if two people want to add a ToInt32() method to System.String, and they add it to the System namespace. Alert! Alert! Name collision!
 
Never mind. I made a full namespace reference to the class when trying to use the method and that fixed it.
 
3:10 PM
So you're calling it as a static method, not an extension method?
 
Ok, fuck. This is just a new class with a single method that just has the same name as the Microsoft one, isn't it?
Now I see why it wasn't working before.
 
3:29 PM
Does anyone know if there is any kind of DataPager functionality for WPF like there is in Silverlight? Third party is fine as long as it's free
Or if anyone has scraped together code to make it work?
 
I have a data service that fetches results from Entity Framework. Those results then need to be fed to an MVC view as IPagedList<MyViewModel>. Should the data service return a List<MyViewModel> and then I convert to IPagedList?
Never mind. It'll return a list, then it'll become a PagedList in the controller's action using: results.ToPagedList(pageNumber, 20);
 
3:46 PM
@Kevin it changes if numberOfSpokes is null I think, if a is not a Widget and numberOfSpokes is null it may return true.
 
Luckily integers can't be null... I think.
 
@Kevin untill someone makes it an int?
 
Yeah that's what I was worrying about when I wrote
1 hour ago, by Kevin
... But this solution doesn't necessarily generalize to classes that check against attributes with nullable types to determine equality.
 
anyone got any ideas how to display coloured task cards onscreen fed by database probably on web page?
anyone got any ideas how I could do that
 
return a!=null ? a.numberOfSpokes == numberOfSpokes : false;
may work in the general case, but if it doesn't just put the ? back and add something like:
// a?.numberOfSpokes because the static code analyzer trips on a. even though it is checked before.
@Ggalla1779 nope.
now, Imma fly away.
 
4:00 PM
@satibel again, short circuiting is your friend
a != null && a.whatever == whatever
 
I think I suggested that. We don't use C# 6 here though 😬
We barely use C# anymore 😬 😬
 
too lazy to search your answer.
though yours is better, it probably will compile to the same thing give or take 1 instruction.
 
Instead of checking for null, why not use Haskell instead?
 
yeah of course
 
4:02 PM
@mikeTheLiar are you up to date with the new java with inline asm standard?
gotta go
 
@satibel Sounds ghastly.
 
4:21 PM
@SagorAhmed Sorry I went to bed, you should be able to type in IIS_USER and click 'Check Name' it would get an underline to it
 
A question.... someone here is not comfortable with AutoMapper and suggested using the implicit operator to do mapping of VM to model, as described in this article: codeproject.com/articles/1043977/…
What do you guys think of using implicit for this?
 
NO. NO, NO, NO. NO!
 
But how do you really feel about it, @RoelvanUden? ;)
 
Both implicit operators and AutoMapper are literally the devil. Yes, literally.
 
Okay. What's the best practice way of doing mapping? Just manual?
 
4:26 PM
Mapping should be explicit, not implicit. And it should be obvious, no awkward Mapper classes with reflection mapping.
 
Okay, makes sense
 
So yes, I personally would say, add 'ToSomethingViewModel' and 'ToSomething' methods for every class you want to map back and forth.
It's clear, everyone gets it, and there will be no issues once the map subject and target start to drift.
Again, my opinion.
 
Hmm. Haven't seen that approach. The way I'm doing it is explicitly in my LINQ statement setting the properties of the VM from the model, and vice versa.
How would the ToSomethingViewModel and ToSomething work?
 
I tend to make extension methods.

public static TeamViewModel ToViewModel(this Team team)

public static Team ToModel(this TeamViewModel viewModel)

Then I can just do..

var model = ...
var viewModel = model.ToViewModel();
Or when I get a post of a VM..

var model = viewModel.ToModel()
 
Ahh, nice!
 
4:30 PM
It's not necessarily the best way, but I like it, and everyone seems to get it.
 
What are the evils of implicit? I just found articles on why AM is evil
 
You'll always find articles on x being great, and also on x being bad. It's all opinions anyway.
Implicit is implicit.. I mean, if I read your code, and I see a .ToViewModel(), it's pretty darn obvious what's going on.
 
Well, it's coming from folks who've been doing this for years. Experience :)
Ahh
 
If it's an implicit conversion into a method, I wouldn't really know about it
Unless i was really paying alot of attention, and needing a lot of attention to read code leads to bugs (in my experience)
Great code is so simple that an amateur can read it.
 
Well, I'm an amateur, so... :p
 
4:33 PM
> Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it’s worth it in the end because once you get there, you can move mountains.
I'm actually quoting Steve Jobs, what's wrong with me
 
Yeah, to make something simple/elegant takes more effort but it's worth it
Thanks, @RoelvanUden :D
 
Indeed. And, in my experience, implicitness and magic that isn't well understood is the exact opposite of that.
That said, there is always room to argue for them
Situations can be improved by using those techniques, but generally, try to avoid getting yourself into such a situation
 
Sorry for another n00b question, what would the internals of one of those extension methods look like?
 
return new TeamViewModel
{
Name = team.Name,
CreatedAt = team.CreatedAt,
...
};
 
Ahh! Easy, peasy!
 
4:37 PM
Or if you choose for them to be immutable:
 
Thanks
 
class TeamViewModel{
 public TeamViewModel(Team team) {
   Name = team.Name;
 }
 public string Name {get; }
}
This is a really nice pattern for where you want immutable properties. For VM's, you usually don't. But it's a nice one to keep in mind
 
Ahh, so it's now only set via the constructor
Would that work for an extension method, though?
 
Sure.
Just combine the two\
But for VMs, keeping it in the extension method is easier for me
less abstraction to follow when reading = me happy
 
When combining, would it be...
class TeamViewModel{
 public TeamViewModel(this Team team) {
   Name = team.Name;
 }
 public string Name {get; }
}
 
4:40 PM
no
public static TeamViewModel ToViewModel(this Team team) {
return new TeamViewModel(team);
}

and

class TeamViewModel..

with the constructor
just give them get; set; props then :P
food time
 
I'm trying to create a mouse button event in WPF. I create the event attribute in XAML and let Visual Studio create the damn function itself, but it's still not being recognized.
 
@Hypersapien What do you mean by not recognized? When you click the button, it doesn't fire?
 
No, when I try to build it.
 
@RoelvanUden Thanks again
 
@Hypersapien Is there a handler generated, or did you create one?
It's usually helpful when you look at what error message you're getting.
 
4:52 PM
The handler is automatically generated.
'cs.WPF.Controls.Patient.Health.Lab_Import.ConLabImport' does not contain a definition for 'lblVewAllBiometric_MouseLeftButtonUp' and no extension method 'lblVewAllBiometric_MouseLeftButtonUp' accepting a first argument of type 'cs.WPF.Controls.Patient.Health.Lab_Import.ConLabImport' could be found (are you missing a using directive or an assembly reference?)
 
@Hypersapien What do your xaml and code-behind look like.
 
Wait, I just realized something. Can a Label even have mouse events?
I'm converting this code, not writing it from scratch, so I didn't realize it was a Label until just now.
 
Yes, a Label can have mouse events.
 
<Label MouseLeftButtonUp="lblVewAllBiometric_MouseLeftButtonUp" />
private void lblVewAllBiometric_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { }
 
@Hypersapien That looks right, and should build.
 
5:01 PM
I'm fairly certain all UIElements have mouse events.
 
What is ConLabImprt?
 
It's the class/control that this takes place in
 
@Hypersapien ConLabImport is a custom control?
 
Yeah
 
@Hypersapien It should build. You can remove your label entry and the code-behind to get your code to build then add them again, or restart VS because that should build unless something else is going on.
 
5:50 PM
SO/SE broken for anyone else?
 
yep
offline for maintenance
 
i'm having withdrawal symptoms already
 
looks like its not planned
they are having DB issues
 
@Failsafe not for maintenance, really. it's just fucked
 
We are having database or network issues on Stack Overflow - investigating now.
 
5:51 PM
@StackStatus
Status updates for the Stack Exchange network, including http://t.co/VY1vdMiR. You can also find more detailed updates on http://t.co/uCcZjNx5.
633 tweets, 5.4k followers, following 0 users
FUCK YOU
looks like its not planned
 
get rekt scrub
 
NY-SQL02 is locked up, we are moving services over now.
 
@KendallFrey lock her up
 
throw away the private key
 
Wipe the server
 
6:31 PM
Hi. I acquire a file handle somehow...can I delete or move the file while I still possess it handle?
Or say, if I do intend to delete, I release the previous handle and then delete
 
7:00 PM
I have a control in the XAML, a user control, it seems to be perfectly accepted. I can hover over it and it gives me the namespace and everything. But when I try to reference it in the codebehend, it says it "doesn't exist in the current context".
Or maybe it's not ok in the XAML. I make a change to the page and suddenly it's unrecognized.
 
7:13 PM
@Hypersapien if this is WPF you can ask in the WPF forum
 
@KendallFrey got the highest grade possible :D
 
hot damn
 
My teacher was going crazy because I had a 'record' function
:p
He even asked me to upload a video on youtube for the school, said no :P
 
@Gigitex - Since you are in Holland, Have you seen this? :) youtube.com/watch?v=ELD2AwFN9Nc
 
When I think of Dutch youtube, I think of Snollebollekes
 
7:25 PM
well I broke everything
anybody know how to fix "The target “PostBuildEvent” does not exist in the project"
 
add it?
or maybe remove whatever is referencing it
 
it's part of the project properties
 
I know that this is not specifically a TFS room, but if anyone has some TFS build knowledge in relation to NuGet, I would be entirely appreciative for some help.
 
I also can't find any reference to post build event in the code
 
@BlueBarren I wouldn't expect that, it's almost certainly a project configuration problem
 
7:31 PM
Do you not have a section in your proj file like so:
 
I agree
 
<Target Name="AfterBuild">
</Target>
 
hmm
 
hi.can any body help me about asp.net webform?
 
@CodeWarrior well I broke it
 
7:35 PM
I think that MSBuild has a core targets file that specifies that if "BeforeBuild" exists, run it, and if "AfterBuild" exists, run it. Somewhere, in your project file (csproj?) it looks like there is a reference to "PostBuildEvent".
Try creating a Target tag with that name on it and see what happens
You will have to open the project file in a text editor.
 
yeah I was messing with the cproj just now before I said I broke it
 
heh
 
Once upon a time I messed with MSBuild cust build processes. It was painful.
 
now vs won't run it and the solution explorer is almost empty
 
7:36 PM
Turning on Verbose Build output is your friend
Care to post the proj file contents in a Gist or Pastebin?
 
@BlueBarren you better pray you've got version control
 
posted on January 24, 2017 by ericlippert

We take a break from a detailed exegesis of a 40-year-old paper for a brief political message. Freakonomics did a poll to come up with a slogan for this country, and the winner was America: Our Worst Critics Prefer To … Continue reading →

 
error : The project file could not be loaded. An XML comment cannot contain '--', and '-' cannot be the last character
@mikeTheLiar yeah I do
 
Yeah, looks like malformed XML.
post it up and I can take a peakaloo
 
post what exactly?
csproj is pretty long
 
7:38 PM
Throw it in a pastebin.
Unless it is many megabytes I can handle it
 
I'm trying something first
 
well I fixed me completely breaking the csproj file
version control, you dig @mikeTheLiar ?
 
I can git dig it.
 
man now it's not even complaining about csproj post build events
or sorry I meant post build events
okay how many squiggles is strikeout?
oh it's dashes
 
7:44 PM
There you go
 
weird formatting
I don't trust it's longevity right now but I can't solve problems when it's not having problems
 
Check out chat.stackoverflow.com/rooms/1/sandbox if you want to play around with chat formatting
 
now do I answer my own question on SO with "I replaced the file with an older version of itself?" because that probably isn't a helpful answer
 
7:59 PM
If you do a diff of between the two and check out the differences, you could post those there and speak about what they were likely doing.
 

« first day (2292 days earlier)      last day (2650 days later) »