This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nuget.exe push -Source "MyFeedName" -ApiKey VSTS Subfolder\bin\Release\MyProject.nupkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start nuget.exe pack Subfolder\MyProject.csproj -OutputDirectory Subfolder\bin\Release -symbols -IncludeReferencedProjects -Prop Configuration=Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'Release'"> | |
<Exec Command="$(SolutionDir)\NuGet.exe pack $(ProjectPath) -IncludeReferencedProjects -Prop Configuration=Release"> | |
</Exec> | |
</Target> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<layout type="log4net.Layout.PatternLayout"> | |
<converter> | |
<name value="HTTPUser" /> | |
<type value="hbulens.Logging.HttpContextUserPatternConverter" /> | |
</converter> | |
<conversionPattern value="%level %date - %message - [%property{Category}] - [%HTTPUser] %newline" /> | |
</layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return myCollection.Where(x => x.MyField == 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string CharacterLimit(this string text, int length) | |
{ | |
if (text.Length <= length) return text; | |
int pos = text.IndexOf(" ", length); | |
if (pos >= 0) return text.Substring(0, pos) + "..."; | |
return text; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public JsonResult GetMessages() | |
{ | |
using(FleetContext ctx = new FleetContext()) | |
{ | |
IEnumerable<string> messages = ctx.Insurers.AsQueryable().Cast<Insurer>().Select(x => x.Name).ToList(); | |
var dataOutput = Json(messages, JsonRequestBehavior.AllowGet); | |
return dataOutput; | |
} | |
} |